From 057000a98324ac742a1bffc53276beddc8fb3479 Mon Sep 17 00:00:00 2001 From: Will Dean <57733339+wd60622@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:12:55 -0400 Subject: [PATCH] add checkout before gh cli (#1118) * add environment variable * add checkout before commands --------- Co-authored-by: Juan Orduz --- .github/workflows/pr-auto-label.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-auto-label.yml b/.github/workflows/pr-auto-label.yml index 27f945bf..1a0167a2 100644 --- a/.github/workflows/pr-auto-label.yml +++ b/.github/workflows/pr-auto-label.yml @@ -3,7 +3,7 @@ on: - pull_request_target jobs: - labeler: + file-change: permissions: contents: read pull-requests: write @@ -11,6 +11,15 @@ jobs: steps: - name: Run Labeler Action uses: actions/labeler@v5 + + sync: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 - name: Sync labels with closing issues run: | owner="pymc-labs"