Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit b026b34

Browse files
committed
Update reusable action to update flake.lock
1 parent 5192871 commit b026b34

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/merge-bot-pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,18 @@ jobs:
4747
env:
4848
PR_URL: ${{github.event.pull_request.html_url}}
4949
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
50+
51+
# https://github.com/kachick/anylang-template/issues/51
52+
selfup-runner:
53+
timeout-minutes: 30
54+
runs-on: ubuntu-latest
55+
if: ${{ github.actor == 'selfup-runner[bot]' }}
56+
steps:
57+
- name: Wait other jobs
58+
uses: kachick/wait-other-jobs@v2
59+
timeout-minutes: 20
60+
- name: Approve and merge
61+
run: gh pr review --approve "$PR_URL" && gh pr merge --auto --delete-branch --squash "$PR_URL"
62+
env:
63+
PR_URL: ${{ github.event.pull_request.html_url }}
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/update-flake-lock-and-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
update-nixpkgs:
14-
uses: kachick/anylang-template/.github/workflows/reusable-update-nixpkgs-and-versions-in-ci.yml@b267dd151327488f5cf15d9f2b273f4ece1da401
14+
uses: kachick/selfup/.github/workflows/reusable-bump-flake-lock-and-selfup.yml@action-v1
1515
if: (github.event.sender.login == 'kachick') || (github.event_name != 'pull_request')
1616
with:
1717
dry-run: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)