Skip to content

Commit

Permalink
fix(ci): Ping myself in a comment on flake.lock PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Aug 26, 2024
1 parent 1ba12c4 commit ed7b1f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ jobs:
run: nix flake update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
id: create-pr
with:
commit-message: "flake: update dependencies"
title: "[automation] update flake dependencies"
branch: "automation/update-flake-dependencies"
token: ${{ secrets.UPDATE_FLAKE_TOKEN }}
- name: Ping me in a comment on the PR
run: |
PR_NUMBER=${{ steps.create-pr.outputs.pull-request-number }}
COMMENT="Ping @mrjones2014"
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
COMMENT_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
curl -s -H "Authorization: token ${GITHUB_TOKEN}" -X POST $COMMENT_URL -d "{\"body\":\"$COMMENT\"}"

0 comments on commit ed7b1f3

Please sign in to comment.