diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/flake-update/action.yaml | 10 | ||||
| -rw-r--r-- | .github/dependabot.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/update-inputs.yaml | 14 | ||||
| -rw-r--r-- | .github/workflows/update-nixpkgs.yaml | 16 |
4 files changed, 17 insertions, 25 deletions
diff --git a/.github/actions/flake-update/action.yaml b/.github/actions/flake-update/action.yaml index 62f3695..2485186 100644 --- a/.github/actions/flake-update/action.yaml +++ b/.github/actions/flake-update/action.yaml @@ -1,18 +1,18 @@ name: "update flake inputs" description: "wrapper around DeterminateSystems/update-flake-lock" inputs: - update-token: - description: "github write token for creating prs" + commit-msg: required: true github-token: - description: "github read token for avoid rate limits" + description: "github read token for increasing rate limits" required: false default: "" inputs: description: "flake inputs to update" required: false default: "" - commit-msg: + update-token: + description: "github write token for creating prs" required: true runs: using: "composite" @@ -30,7 +30,7 @@ runs: token: ${{ inputs.update-token }} - name: auto-merge pull request - run: gh pr merge --auto --squash "$PR_ID" + run: gh pr merge --auto --rebase "$PR_ID" env: GITHUB_TOKEN: ${{ inputs.update-token }} PR_ID: ${{ steps.update.outputs.pull-request-number }} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e7bda0b..1d662ce 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,4 +5,4 @@ updates: schedule: interval: "weekly" commit-message: - prefix: "chore(actions)" + prefix: "actions" diff --git a/.github/workflows/update-inputs.yaml b/.github/workflows/update-inputs.yaml index 3103629..0ac81a5 100644 --- a/.github/workflows/update-inputs.yaml +++ b/.github/workflows/update-inputs.yaml @@ -1,23 +1,19 @@ name: update all inputs on: - # schedule: - # # run every saturday - # - cron: "0 0 * * 6" + schedule: + # run every saturday + - cron: "0 0 * * 6" workflow_dispatch: -permissions: read-all - jobs: update-lock: runs-on: ubuntu-latest steps: - - name: checkout repo - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: update all inputs - uses: ./.github/actions/flake-update + - uses: ./.github/actions/flake-update with: commit-msg: "flake: update all inputs" github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-nixpkgs.yaml b/.github/workflows/update-nixpkgs.yaml index 81fbe9e..8b0ac1b 100644 --- a/.github/workflows/update-nixpkgs.yaml +++ b/.github/workflows/update-nixpkgs.yaml @@ -1,25 +1,21 @@ name: update nixpkgs inputs on: - # schedule: - # # run daily at 0:00 utc - # - cron: "0 0 * * *" + schedule: + # run daily at 0:00 utc + - cron: "0 0 * * *" workflow_dispatch: -permissions: read-all - jobs: update-nixpkgs: runs-on: ubuntu-latest steps: - - name: checkout repo - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: update nixpkgs inputs - uses: ./.github/actions/flake-update + - uses: ./.github/actions/flake-update with: - inputs: nixpkgs nixpkgs-stable commit-msg: "flake: update nixpkgs inputs" github-token: ${{ secrets.GITHUB_TOKEN }} + inputs: nixpkgs nixpkgs-stable update-token: ${{ secrets.FLAKE_UPDATE }} |
