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."