@@ -267,6 +267,7 @@ jobs:
267
267
| git_remote_pull_params | `[optional]` set remote pull parameters | `false` | `--allow-unrelated-histories --squash --strategy=recursive -X theirs` |
268
268
| gpg_private_key | `[optional]` set if you want to sign commits | `false` | |
269
269
| gpg_passphrase | `[optional]` set if your optionial gpg private key has a passphrase | `false` | |
270
+ | steps | `[optional] add the steps you want to execute within the action` | `false` | all steps will be executed |
270
271
271
272
# ## Action Outputs
272
273
@@ -423,6 +424,51 @@ If `is_dry_run` parameter is set to true then all stages modifying the github st
423
424
It is possible to run a subset of the mentioned lifecycle actions.
424
425
**preparation** and **github action outputs** will be run every time.
425
426
427
+ :warning : Advanced feature. Use with care (possibly set `is_dry_run: true` configuration parameter for testing purposes)
428
+
429
+ e.g.
430
+
431
+ ` ` ` yaml
432
+ # File: .github/workflows/test_steps.yml
433
+
434
+ on:
435
+ # cronjob trigger
436
+ schedule:
437
+ - cron: "0 0 1 * *"
438
+ # manual trigger
439
+ workflow_dispatch:
440
+ jobs:
441
+ repo-sync:
442
+ runs-on: ubuntu-latest
443
+ # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
444
+ permissions:
445
+ contents: write
446
+ pull-requests: write
447
+
448
+ steps:
449
+ # To use this repository's private action, you must check out the repository
450
+ - name: Checkout
451
+ uses: actions/checkout@v4
452
+
453
+ - name: actions-template-sync first steps
454
+ uses: AndreasAugustin/actions-template-sync@v2
455
+ with:
456
+ source_repo_path: <owner/repo>
457
+ steps: "prechecks,pull"
458
+
459
+ - name: in between step
460
+ run: |
461
+ echo "I can do whatever I want"
462
+ git status
463
+
464
+ - name: actions-template-sync next steps
465
+ uses: AndreasAugustin/actions-template-sync@v2
466
+ with:
467
+ source_repo_path: <owner/repo>
468
+ steps: "commit,push,pr"
469
+
470
+ ` ` `
471
+
426
472
# # Lifecycle hooks
427
473
428
474
Different lifecycle hooks are supported. You need to enable the functionality with the option `is_allow_hooks` and set it to `true`
0 commit comments