From 35e312bfb41145fdcafe43ffe52f6808c231a360 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 10 Jul 2023 22:30:20 -0400 Subject: actions: only use github token for flake-update --- .github/actions/flake-update/action.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.github/actions/flake-update') diff --git a/.github/actions/flake-update/action.yaml b/.github/actions/flake-update/action.yaml index 8c3481a..11abd9d 100644 --- a/.github/actions/flake-update/action.yaml +++ b/.github/actions/flake-update/action.yaml @@ -5,15 +5,12 @@ inputs: required: true github-token: description: "github read token for increasing rate limits" - required: false + required: true default: "" inputs: description: "flake inputs to update" required: false default: "" - update-token: - description: "github write token for creating prs" - required: true runs: using: "composite" steps: @@ -29,12 +26,14 @@ runs: commit-msg: ${{ inputs.commit-msg }} inputs: ${{ inputs.inputs }} nix-options: "--accept-flake-config" + pr-body: | + Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. pr-title: ${{ inputs.commit-msg }} - token: ${{ inputs.update-token }} + token: ${{ inputs.github-token }} - name: auto-merge pull request shell: bash run: gh pr merge --auto --rebase "$PR_ID" env: - GITHUB_TOKEN: ${{ inputs.update-token }} + GITHUB_TOKEN: ${{ inputs.github-token }} PR_ID: ${{ steps.update.outputs.pull-request-number }} -- cgit v1.2.3