mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
26 lines
643 B
YAML
26 lines
643 B
YAML
name: merge_flake_lock_update
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 2 * * 6"
|
|
|
|
jobs:
|
|
merge:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: merge_flake_lock_update
|
|
run: |
|
|
pr_number=$(gh pr list --state open --author RichieCahill --label flake_lock_update --json number --jq '.[0].number')
|
|
if [ -n "$pr_number" ]; then
|
|
gh pr merge "$pr_number" --auto
|
|
else
|
|
echo "No open PR found with label flake_lock_update"
|
|
fi
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|