From b8e57130f09094942407729a1ae928403ec469c5 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Fri, 1 Nov 2024 23:40:45 +0530 Subject: [PATCH] ci: Try to set env correctly --- .github/workflows/close-master-prs.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/close-master-prs.yaml b/.github/workflows/close-master-prs.yaml index 805ac86..0db2e91 100644 --- a/.github/workflows/close-master-prs.yaml +++ b/.github/workflows/close-master-prs.yaml @@ -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