mirror of
https://github.com/chenasraf/flathub.git
synced 2026-05-17 17:38:10 +00:00
ci: Try to set env correctly
This commit is contained in:
14
.github/workflows/close-master-prs.yaml
vendored
14
.github/workflows/close-master-prs.yaml
vendored
@@ -15,13 +15,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check and close
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.FLATHUBBOT_TOKEN }}
|
||||
COMMENT: >
|
||||
This PR is automatically closed because application submission
|
||||
PRs must be made against the new-pr branch. If this is done
|
||||
in error, please comment or reopen!
|
||||
REPO: flathub/flathub
|
||||
run: |
|
||||
has_label=$(gh pr --repo "$REPO" view "${{ github.event.pull_request.number }}" --json labels -q '.labels | any(.name == "leave-open")')
|
||||
|
||||
@@ -30,3 +23,10 @@ jobs:
|
||||
gh pr --repo "$REPO" close "${{ github.event.pull_request.number }}" -c "$COMMENT"
|
||||
fi
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.FLATHUBBOT_TOKEN }}
|
||||
COMMENT: >
|
||||
This PR is automatically closed because application submission
|
||||
PRs must be made against the new-pr branch. If this is done
|
||||
in error, please comment or reopen!
|
||||
REPO: flathub/flathub
|
||||
|
||||
Reference in New Issue
Block a user