mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci/update: document how to re-update in PR body
This commit is contained in:
parent
723630ca40
commit
5cd74b54ad
1 changed files with 17 additions and 0 deletions
17
.github/workflows/update.yml
vendored
17
.github/workflows/update.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue