diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-03 12:32:37 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-03 12:32:37 +0100 |
commit | 9dd1dc49d92da4641e83057099691a22ebd52bd8 (patch) | |
tree | 1455a0a7e853670f35c9dfe1e34355feeeec9571 /.github/workflows | |
parent | 121ee818a52b6c88fa4b7ae993ad15a27dc99038 (diff) | |
download | zsh-9dd1dc49d92da4641e83057099691a22ebd52bd8.tar.gz zsh-9dd1dc49d92da4641e83057099691a22ebd52bd8.tar.bz2 zsh-9dd1dc49d92da4641e83057099691a22ebd52bd8.zip |
chore: simplify `GITHUB_TOKEN` env in project GitHub Action
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/project.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 2b3cc732f..6968e5ad4 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -9,10 +9,11 @@ jobs: add-to-project: name: Add to project runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} steps: - name: Read project data env: - GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} ORGANIZATION: ohmyzsh PROJECT_NUMBER: "1" run: | @@ -42,7 +43,6 @@ jobs: - name: Add to project env: - GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} ISSUE_ID: ${{ github.event.issue.node_id }} PR_ID: ${{ github.event.pull_request.node_id }} run: | @@ -60,8 +60,6 @@ jobs: - name: Classify Pull Request if: github.event_name == 'pull_request_target' - env: - GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} run: | gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ ' /^plugins\// { @@ -91,8 +89,6 @@ jobs: - name: Fill Pull Request fields in project if: github.event_name == 'pull_request_target' - env: - GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }} run: | gh api graphql -f query=' mutation ( |