📜  在 github 操作中使用环境变量 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:49.437000             🧑  作者: Mango

代码示例1
# add environmental variable repo name
env:
   GITHUB_REPOSITORY: github.event.repository.name   # this will print common-repo-name

   GITHUB_REPOSITORY: github.event.repository.full_name # this will print your-account-name/common-repo-name

you can call the variable name where you want it as $GITHUB_REPOSITORY

name: "Doing github repo-name thing!"
    run: echo "$GITHU_REPOSITORY"