chore: simplify `GITHUB_TOKEN` env in project GitHub Action
This commit is contained in:
parent
121ee818a5
commit
9dd1dc49d9
|
@ -9,10 +9,11 @@ jobs:
|
||||||
add-to-project:
|
add-to-project:
|
||||||
name: Add to project
|
name: Add to project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Read project data
|
- name: Read project data
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
||||||
ORGANIZATION: ohmyzsh
|
ORGANIZATION: ohmyzsh
|
||||||
PROJECT_NUMBER: "1"
|
PROJECT_NUMBER: "1"
|
||||||
run: |
|
run: |
|
||||||
|
@ -42,7 +43,6 @@ jobs:
|
||||||
|
|
||||||
- name: Add to project
|
- name: Add to project
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
||||||
ISSUE_ID: ${{ github.event.issue.node_id }}
|
ISSUE_ID: ${{ github.event.issue.node_id }}
|
||||||
PR_ID: ${{ github.event.pull_request.node_id }}
|
PR_ID: ${{ github.event.pull_request.node_id }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -60,8 +60,6 @@ jobs:
|
||||||
|
|
||||||
- name: Classify Pull Request
|
- name: Classify Pull Request
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
|
gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
|
||||||
/^plugins\// {
|
/^plugins\// {
|
||||||
|
@ -91,8 +89,6 @@ jobs:
|
||||||
|
|
||||||
- name: Fill Pull Request fields in project
|
- name: Fill Pull Request fields in project
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
gh api graphql -f query='
|
gh api graphql -f query='
|
||||||
mutation (
|
mutation (
|
||||||
|
|
Loading…
Reference in New Issue