From 5e1739c94f6c9952595e76ece6538d1de672d5d4 Mon Sep 17 00:00:00 2001 From: Zane Selvans Date: Sun, 5 Nov 2023 22:53:36 -0600 Subject: [PATCH] checkout repo to make commit/PR. Trigger if update-lockfile.yml changes. --- .github/workflows/update-lockfile.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml index 6d6e9273af..ac6c65ac01 100644 --- a/.github/workflows/update-lockfile.yml +++ b/.github/workflows/update-lockfile.yml @@ -9,6 +9,7 @@ on: paths: - "pyproject.toml" - "environments/*" + - ".github/workflows/update-lockfile.yml" # What branch does this action run on? # - workflow_dispatch: Whatever branch it was run against. @@ -66,6 +67,10 @@ jobs: run: shell: bash -l {0} steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.PUDL_BOT_PAT }} + ref: ${{ env.GITHUB_REF }} - name: Commit updated conda lockfiles uses: stefanzweifel/git-auto-commit-action@v5 with: @@ -83,6 +88,10 @@ jobs: run: shell: bash -l {0} steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.PUDL_BOT_PAT }} + ref: ${{ env.GITHUB_REF }} - uses: peter-evans/create-pull-request@v5 with: commit-message: "Update conda-lock.yml and rendered conda environment files."