Skip to content

Commit

Permalink
ci/update: document how to re-update in PR body
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Feb 24, 2025
1 parent 723630c commit 5cd74b5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,23 @@ jobs:
echo "$generated"
echo
fi
run_cmd='gh workflow run update.yml'
if [[ "$base_branch" != "main" ]]; then
run_cmd+=" --ref $base_branch"
fi
echo '---'
echo
echo -n 'You can re-run the update by going to the '
echo -n '[workflow'"'"'s page](https://github.com/nix-community/nixvim/actions/workflows/update.yml) '
echo 'or by using the `gh` command:'
echo '```sh'
echo "$run_cmd"
echo '```'
echo
echo -n 'If needed, you can also specify workflow inputs on the command line, '
echo 'using the `-F --field`, `-f --raw-field`, or `--json` flags.'
echo 'See `gh workflow run --help`.'
echo
) > body.md
if [[ -n "$pr_num" ]]; then
Expand Down

0 comments on commit 5cd74b5

Please sign in to comment.