ci: Try to set env correctly

This commit is contained in:
bbhtt
2024-11-01 23:40:45 +05:30
parent b283052b62
commit b8e57130f0

View File

@@ -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