Skip to content

Commit 5cd74b5

Browse files
committed
ci/update: document how to re-update in PR body
1 parent 723630c commit 5cd74b5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/update.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,23 @@ jobs:
239239
echo "$generated"
240240
echo
241241
fi
242+
run_cmd='gh workflow run update.yml'
243+
if [[ "$base_branch" != "main" ]]; then
244+
run_cmd+=" --ref $base_branch"
245+
fi
246+
echo '---'
247+
echo
248+
echo -n 'You can re-run the update by going to the '
249+
echo -n '[workflow'"'"'s page](https://github.com/nix-community/nixvim/actions/workflows/update.yml) '
250+
echo 'or by using the `gh` command:'
251+
echo '```sh'
252+
echo "$run_cmd"
253+
echo '```'
254+
echo
255+
echo -n 'If needed, you can also specify workflow inputs on the command line, '
256+
echo 'using the `-F --field`, `-f --raw-field`, or `--json` flags.'
257+
echo 'See `gh workflow run --help`.'
258+
echo
242259
) > body.md
243260
244261
if [[ -n "$pr_num" ]]; then

0 commit comments

Comments
 (0)