diff options
| author | seth <[email protected]> | 2024-05-22 20:38:40 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-22 20:37:10 -0600 |
| commit | 573c04045c247791523062205dcc76b5cf69066c (patch) | |
| tree | ad0d6c53b8eb7dda17a30ccb7e02a30a6622399f /.github/workflows/update-lock.yaml | |
| parent | 250d3ef82f6528647809a60df75aa54e235a7a0a (diff) | |
ci: garnix -> gha for 12343894th time
Diffstat (limited to '.github/workflows/update-lock.yaml')
| -rw-r--r-- | .github/workflows/update-lock.yaml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml index 109d860..d042e9a 100644 --- a/.github/workflows/update-lock.yaml +++ b/.github/workflows/update-lock.yaml @@ -4,26 +4,28 @@ on: workflow_call: inputs: commit-msg: - description: summary for lockfile commit + description: "Summary for lockfile commit" required: true type: string inputs: - description: flake inputs to update + description: "Flake inputs to update" required: false default: "" type: string + secrets: + MERGE_TOKEN: + description: PAT to create and merge PR + required: true jobs: update: name: Update & make PR - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - name: Install Nix uses: DeterminateSystems/nix-installer-action@v11 @@ -35,11 +37,11 @@ jobs: commit-msg: ${{ inputs.commit-msg }} inputs: ${{ inputs.inputs }} pr-title: ${{ inputs.commit-msg }} - token: ${{ github.token }} + token: ${{ secrets.MERGE_TOKEN }} - name: Enable auto-merge shell: bash run: gh pr merge --auto --rebase "$PR_ID" env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.MERGE_TOKEN }} PR_ID: ${{ steps.update.outputs.pull-request-number }} |
