mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
testing merge_flake_lock_update
This commit is contained in:
19
.github/workflows/merge_flake_lock_update.yml
vendored
Normal file
19
.github/workflows/merge_flake_lock_update.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Auto Merge Pull Request
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 6"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Enable auto-merge
|
||||||
|
run: gh pr merge flake_lock_update --auto
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||||
10
.github/workflows/update-flake-lock.yml
vendored
10
.github/workflows/update-flake-lock.yml
vendored
@@ -20,12 +20,4 @@ jobs:
|
|||||||
pr-labels: |
|
pr-labels: |
|
||||||
dependencies
|
dependencies
|
||||||
automated
|
automated
|
||||||
- name: Enable auto-merge
|
flake_lock_update
|
||||||
if: ${{ success() }}
|
|
||||||
run: |
|
|
||||||
gh pr merge --auto --rebase "$PR_URL"
|
|
||||||
env:
|
|
||||||
PR_URL: ${{ steps.update-flake-lock.outputs.pull-request-url }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
|
||||||
auto-merge: true
|
|
||||||
pr-allow-automerge: true
|
|
||||||
|
|||||||
Reference in New Issue
Block a user