1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

chore: let's try again

This commit is contained in:
Marc Cornellà 2022-01-02 03:32:07 +01:00
parent 17c52ccfc9
commit dd7f0f2211
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -12,11 +12,12 @@ jobs:
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: |
# Get Project data # Get Project data
gh api graphql -f query=' GITHUB_TOKEN=$GITHUB_TOKEN gh api graphql -f query='
query($org: String!, $number: Int!) { query($org: String!, $number: Int!) {
organization(login: $org){ organization(login: $org){
projectNext(number: $number) { projectNext(number: $number) {
@ -41,6 +42,7 @@ 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: |
@ -58,6 +60,8 @@ 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\// {
@ -87,6 +91,8 @@ 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 (