chore: update flake.lock #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: Andrew Hayzen <[email protected]> | |
# | |
# SPDX-License-Identifier: MPL-2.0 | |
name: auto merge | |
on: | |
pull_request_target: | |
workflow_dispatch: | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-22.04 | |
# Auto merge if this is | |
# - dependabot | |
# - update of flake.lock | |
if: "${{ github.event.pull_request.user.login == 'dependabot[bot]' || (github.event.pull_request.user.login == 'ahayzen-nix-config-bot[bot]' && github.event.pull_request.title == 'chore: update flake.lock') }}" | |
steps: | |
- name: approve the pr | |
run: gh pr review $PR_URL --approve | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: auto-merge the pr | |
run: gh pr merge --auto --delete-branch --rebase "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |