From 4dc3c9db5a8f0fa43a7eca771dad1c0d90136d25 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:25:40 +0900 Subject: [PATCH] ci: rename workflows --- ...ntext.yaml => _reusable-dump-context.yaml} | 0 ...ed.yaml => _reusable-workflow-called.yaml} | 0 ...nest.yaml => _reusable-workflow-nest.yaml} | 2 +- ...ction_default.yaml => action-default.yaml} | 0 ...ion_env_diff.yaml => action-env-diff.yaml} | 0 ...viewdog.yaml => actionlint-reviewdog.yaml} | 0 ...unner_info.yaml => actionrunner-info.yaml} | 0 ..._telemetry.yaml => actions-telemetry.yaml} | 0 ...ns_timeline.yaml => actions-timeline.yaml} | 0 ...irectory.yaml => artifacts-directory.yaml} | 0 ...rtifacts_file.yaml => artifacts-file.yaml} | 0 ...ifacts_targz.yaml => artifacts-targz.yaml} | 0 .../{auto_doc.yaml => auto-doc.yaml} | 0 ...mp_context.yaml => auto-dump-context.yaml} | 2 +- .../workflows/{aws_cli.yaml => aws-cli.yaml} | 0 ...edential.yaml => aws-oidc-credential.yaml} | 0 ...ord_checker.yaml => ban-word-checker.yaml} | 0 ...d_conftest.yaml => ban-word-conftest.yaml} | 4 +- ...h_push_only.yaml => branch-push-only.yaml} | 0 ...tbuild.yaml => cancel-redundantbuild.yaml} | 0 .../{comment_run.yaml => comment-run.yaml} | 0 ...ncurrency-control-cancel-in-progress.yaml} | 0 ..._control.yaml => concurrency-control.yaml} | 0 ...ontext_github.yaml => context-github.yaml} | 0 ...e_on_error.yaml => continue-on-error.yaml} | 0 .../{create_pr.yaml => create-pr.yaml} | 0 ...reate_release.yaml => create-release.yaml} | 0 .../{create_tag.yaml => create-tag.yaml} | 0 .../{crlf_checker.yaml => crlf-checker.yaml} | 0 ...ons.yaml => dispatch-changes-actions.yaml} | 0 ...tch_changes.yaml => dispatch-changes.yaml} | 0 ...ly_tag.yaml => dotnet-build-only-tag.yaml} | 0 .../{dotnet_build.yaml => dotnet-build.yaml} | 0 .../{dotnet_lint.yaml => dotnet-lint.yaml} | 0 ...net_sln_list.yaml => dotnet-sln-list.yaml} | 0 .../{dump_context.yaml => dump-context.yaml} | 0 ..._with_script.yaml => env-with-script.yaml} | 0 ...nt_deploy.yaml => environment-deploy.yaml} | 0 ..._detect_job.yaml => error-detect-job.yaml} | 0 .../{fake_ternary.yaml => fake-ternary.yaml} | 0 ...rny.yaml => file-change-detect-dorny.yaml} | 0 ...ect_tj.yaml => file-change-detect-tj.yaml} | 0 ...om.yaml => file-change-detect-trilom.yaml} | 0 ...ge_matrix.yaml => file-change-matrix.yaml} | 0 ...e.yaml => git-sparsecheckout-exclude.yaml} | 0 ...rn.yaml => git-sparsecheckout-nocorn.yaml} | 0 ...echeckout.yaml => git-sparsecheckout.yaml} | 0 .../workflows/{git_tag.yaml => git-tag.yaml} | 0 .../{github_api.yaml => github-api.yaml} | 0 ...{if_and_concat.yaml => if-and-concat.yaml} | 0 ...f_and_context.yaml => if-and-context.yaml} | 0 .../{install_tool.yaml => install-tool.yaml} | 0 ...t_manual.yaml => k8s-manifest-manual.yaml} | 0 ..._manifest_pr.yaml => k8s-manifest-pr.yaml} | 0 ...ifest_push.yaml => k8s-manifest-push.yaml} | 0 ...up_kubectl.yaml => k8s-setup-kubectl.yaml} | 0 ...anual_trigger.yaml => manual-trigger.yaml} | 0 ...{matrix_envvar.yaml => matrix-envvar.yaml} | 0 ...udesonly.yaml => matrix-includesonly.yaml} | 0 ...{matrix_secret.yaml => matrix-secret.yaml} | 0 ...ge_branch_pr.yaml => merge-branch-pr.yaml} | 0 .../{merge_branch.yaml => merge-branch.yaml} | 0 .../{multiline_if.yaml => multiline-if.yaml} | 0 ...line_inputs.yaml => multiline-inputs.yaml} | 0 ...{multiline_run.yaml => multiline-run.yaml} | 0 ...ss.yaml => needs-not-require-success.yaml} | 0 ...uccess.yaml => needs-require-success.yaml} | 0 ...handling.yaml => needs-skip-handling.yaml} | 0 ...dling.yaml => needs-skip-no-handling.yaml} | 0 .../{nest_actions.yaml => nest-actions.yaml} | 0 ...missions_job.yaml => permissions-job.yaml} | 0 ...orkflow.yaml => permissions-workflow.yaml} | 0 .../{pr_close.yaml => pr-close.yaml} | 0 ..._commit.yaml => pr-from-merge-commit.yaml} | 0 .../{pr_label_get.yaml => pr-label-get.yaml} | 0 ...change1.yaml => prevent-file-change1.yaml} | 0 ...change2.yaml => prevent-file-change2.yaml} | 0 ...change3.yaml => prevent-file-change3.yaml} | 0 ...change4.yaml => prevent-file-change4.yaml} | 0 ....yaml => push-and-pr-avoid-redundant.yaml} | 0 .../{push_and_pr.yaml => push-and-pr.yaml} | 0 ...=> reusable-workflow-caller-internal.yaml} | 2 +- ...l => reusable-workflow-caller-matrix.yaml} | 2 +- ...aml => reusable-workflow-caller-nest.yaml} | 2 +- ...l => reusable-workflow-public-caller.yaml} | 2 +- ...ode.yaml => reuse-local-actions-node.yaml} | 0 ..._actions.yaml => reuse-local-actions.yaml} | 0 .../{schedule_job.yaml => schedule-job.yaml} | 0 ...ecrets_access.yaml => secrets-access.yaml} | 0 ...equential_run.yaml => sequential-run.yaml} | 0 .github/workflows/setup-dotnet.yaml | 2 +- ....yaml => shellscript-error-on-return.yaml} | 0 ...ci_pr_title.yaml => skip-ci-pr-title.yaml} | 0 ...l_pr.yaml => skip-draft-but-label-pr.yaml} | 0 ...{skip_draft_pr.yaml => skip-draft-pr.yaml} | 0 ..._from_fork.yaml => skip-pr-from-fork.yaml} | 0 .../{status_step.yaml => status-step.yaml} | 0 ...ontext.yaml => tag-push-only-context.yaml} | 0 ...attern.yaml => tag-push-only-pattern.yaml} | 0 ...{tag_push_only.yaml => tag-push-only.yaml} | 0 .../{trigger_ci.yaml => trigger-ci.yaml} | 0 ...pdate_package.yaml => update-package.yaml} | 0 ...bles_access.yaml => variables-access.yaml} | 0 ...low_command.yaml => workflow-command.yaml} | 0 ...uts.yaml => workflow-dispatch-inputs.yaml} | 0 ...ml => workflow-dispatch-mixed-inputs.yaml} | 0 README.md | 128 +++++++++--------- 107 files changed, 73 insertions(+), 73 deletions(-) rename .github/workflows/{_reusable_dump_context.yaml => _reusable-dump-context.yaml} (100%) rename .github/workflows/{_reusable_workflow_called.yaml => _reusable-workflow-called.yaml} (100%) rename .github/workflows/{_reusable_workflow_nest.yaml => _reusable-workflow-nest.yaml} (87%) rename .github/workflows/{action_default.yaml => action-default.yaml} (100%) rename .github/workflows/{action_env_diff.yaml => action-env-diff.yaml} (100%) rename .github/workflows/{actionlint_reviewdog.yaml => actionlint-reviewdog.yaml} (100%) rename .github/workflows/{actionrunner_info.yaml => actionrunner-info.yaml} (100%) rename .github/workflows/{actions_telemetry.yaml => actions-telemetry.yaml} (100%) rename .github/workflows/{actions_timeline.yaml => actions-timeline.yaml} (100%) rename .github/workflows/{artifacts_directory.yaml => artifacts-directory.yaml} (100%) rename .github/workflows/{artifacts_file.yaml => artifacts-file.yaml} (100%) rename .github/workflows/{artifacts_targz.yaml => artifacts-targz.yaml} (100%) rename .github/workflows/{auto_doc.yaml => auto-doc.yaml} (100%) rename .github/workflows/{auto_dump_context.yaml => auto-dump-context.yaml} (93%) rename .github/workflows/{aws_cli.yaml => aws-cli.yaml} (100%) rename .github/workflows/{aws_oidc_credential.yaml => aws-oidc-credential.yaml} (100%) rename .github/workflows/{ban_word_checker.yaml => ban-word-checker.yaml} (100%) rename .github/workflows/{ban_word_conftest.yaml => ban-word-conftest.yaml} (67%) rename .github/workflows/{branch_push_only.yaml => branch-push-only.yaml} (100%) rename .github/workflows/{cancel_redundantbuild.yaml => cancel-redundantbuild.yaml} (100%) rename .github/workflows/{comment_run.yaml => comment-run.yaml} (100%) rename .github/workflows/{concurrency_control_cancel_in_progress.yaml => concurrency-control-cancel-in-progress.yaml} (100%) rename .github/workflows/{concurrency_control.yaml => concurrency-control.yaml} (100%) rename .github/workflows/{context_github.yaml => context-github.yaml} (100%) rename .github/workflows/{continue_on_error.yaml => continue-on-error.yaml} (100%) rename .github/workflows/{create_pr.yaml => create-pr.yaml} (100%) rename .github/workflows/{create_release.yaml => create-release.yaml} (100%) rename .github/workflows/{create_tag.yaml => create-tag.yaml} (100%) rename .github/workflows/{crlf_checker.yaml => crlf-checker.yaml} (100%) rename .github/workflows/{dispatch_changes_actions.yaml => dispatch-changes-actions.yaml} (100%) rename .github/workflows/{dispatch_changes.yaml => dispatch-changes.yaml} (100%) rename .github/workflows/{dotnet_build_only_tag.yaml => dotnet-build-only-tag.yaml} (100%) rename .github/workflows/{dotnet_build.yaml => dotnet-build.yaml} (100%) rename .github/workflows/{dotnet_lint.yaml => dotnet-lint.yaml} (100%) rename .github/workflows/{dotnet_sln_list.yaml => dotnet-sln-list.yaml} (100%) rename .github/workflows/{dump_context.yaml => dump-context.yaml} (100%) rename .github/workflows/{env_with_script.yaml => env-with-script.yaml} (100%) rename .github/workflows/{environment_deploy.yaml => environment-deploy.yaml} (100%) rename .github/workflows/{error_detect_job.yaml => error-detect-job.yaml} (100%) rename .github/workflows/{fake_ternary.yaml => fake-ternary.yaml} (100%) rename .github/workflows/{file_change_detect_dorny.yaml => file-change-detect-dorny.yaml} (100%) rename .github/workflows/{file_change_detect_tj.yaml => file-change-detect-tj.yaml} (100%) rename .github/workflows/{file_change_detect_trilom.yaml => file-change-detect-trilom.yaml} (100%) rename .github/workflows/{file_change_matrix.yaml => file-change-matrix.yaml} (100%) rename .github/workflows/{git_sparsecheckout_exclude.yaml => git-sparsecheckout-exclude.yaml} (100%) rename .github/workflows/{git_sparsecheckout_nocorn.yaml => git-sparsecheckout-nocorn.yaml} (100%) rename .github/workflows/{git_sparsecheckout.yaml => git-sparsecheckout.yaml} (100%) rename .github/workflows/{git_tag.yaml => git-tag.yaml} (100%) rename .github/workflows/{github_api.yaml => github-api.yaml} (100%) rename .github/workflows/{if_and_concat.yaml => if-and-concat.yaml} (100%) rename .github/workflows/{if_and_context.yaml => if-and-context.yaml} (100%) rename .github/workflows/{install_tool.yaml => install-tool.yaml} (100%) rename .github/workflows/{k8s_manifest_manual.yaml => k8s-manifest-manual.yaml} (100%) rename .github/workflows/{k8s_manifest_pr.yaml => k8s-manifest-pr.yaml} (100%) rename .github/workflows/{k8s_manifest_push.yaml => k8s-manifest-push.yaml} (100%) rename .github/workflows/{k8s_setup_kubectl.yaml => k8s-setup-kubectl.yaml} (100%) rename .github/workflows/{manual_trigger.yaml => manual-trigger.yaml} (100%) rename .github/workflows/{matrix_envvar.yaml => matrix-envvar.yaml} (100%) rename .github/workflows/{matrix_includesonly.yaml => matrix-includesonly.yaml} (100%) rename .github/workflows/{matrix_secret.yaml => matrix-secret.yaml} (100%) rename .github/workflows/{merge_branch_pr.yaml => merge-branch-pr.yaml} (100%) rename .github/workflows/{merge_branch.yaml => merge-branch.yaml} (100%) rename .github/workflows/{multiline_if.yaml => multiline-if.yaml} (100%) rename .github/workflows/{multiline_inputs.yaml => multiline-inputs.yaml} (100%) rename .github/workflows/{multiline_run.yaml => multiline-run.yaml} (100%) rename .github/workflows/{needs_not_require_success.yaml => needs-not-require-success.yaml} (100%) rename .github/workflows/{needs_require_success.yaml => needs-require-success.yaml} (100%) rename .github/workflows/{needs_skip_handling.yaml => needs-skip-handling.yaml} (100%) rename .github/workflows/{needs_skip_no_handling.yaml => needs-skip-no-handling.yaml} (100%) rename .github/workflows/{nest_actions.yaml => nest-actions.yaml} (100%) rename .github/workflows/{permissions_job.yaml => permissions-job.yaml} (100%) rename .github/workflows/{permissions_workflow.yaml => permissions-workflow.yaml} (100%) rename .github/workflows/{pr_close.yaml => pr-close.yaml} (100%) rename .github/workflows/{pr_from_merge_commit.yaml => pr-from-merge-commit.yaml} (100%) rename .github/workflows/{pr_label_get.yaml => pr-label-get.yaml} (100%) rename .github/workflows/{prevent_file_change1.yaml => prevent-file-change1.yaml} (100%) rename .github/workflows/{prevent_file_change2.yaml => prevent-file-change2.yaml} (100%) rename .github/workflows/{prevent_file_change3.yaml => prevent-file-change3.yaml} (100%) rename .github/workflows/{prevent_file_change4.yaml => prevent-file-change4.yaml} (100%) rename .github/workflows/{push_and_pr_avoid_redundant.yaml => push-and-pr-avoid-redundant.yaml} (100%) rename .github/workflows/{push_and_pr.yaml => push-and-pr.yaml} (100%) rename .github/workflows/{reusable_workflow_caller_internal.yaml => reusable-workflow-caller-internal.yaml} (90%) rename .github/workflows/{reusable_workflow_caller_matrix.yaml => reusable-workflow-caller-matrix.yaml} (83%) rename .github/workflows/{reusable_workflow_caller_nest.yaml => reusable-workflow-caller-nest.yaml} (80%) rename .github/workflows/{reusable_workflow_public_caller.yaml => reusable-workflow-public-caller.yaml} (94%) rename .github/workflows/{reuse_local_actions_node.yaml => reuse-local-actions-node.yaml} (100%) rename .github/workflows/{reuse_local_actions.yaml => reuse-local-actions.yaml} (100%) rename .github/workflows/{schedule_job.yaml => schedule-job.yaml} (100%) rename .github/workflows/{secrets_access.yaml => secrets-access.yaml} (100%) rename .github/workflows/{sequential_run.yaml => sequential-run.yaml} (100%) rename .github/workflows/{shellscript_error_on_return.yaml => shellscript-error-on-return.yaml} (100%) rename .github/workflows/{skip_ci_pr_title.yaml => skip-ci-pr-title.yaml} (100%) rename .github/workflows/{skip_draft_but_label_pr.yaml => skip-draft-but-label-pr.yaml} (100%) rename .github/workflows/{skip_draft_pr.yaml => skip-draft-pr.yaml} (100%) rename .github/workflows/{skip_pr_from_fork.yaml => skip-pr-from-fork.yaml} (100%) rename .github/workflows/{status_step.yaml => status-step.yaml} (100%) rename .github/workflows/{tag_push_only_context.yaml => tag-push-only-context.yaml} (100%) rename .github/workflows/{tag_push_only_pattern.yaml => tag-push-only-pattern.yaml} (100%) rename .github/workflows/{tag_push_only.yaml => tag-push-only.yaml} (100%) rename .github/workflows/{trigger_ci.yaml => trigger-ci.yaml} (100%) rename .github/workflows/{update_package.yaml => update-package.yaml} (100%) rename .github/workflows/{variables_access.yaml => variables-access.yaml} (100%) rename .github/workflows/{workflow_command.yaml => workflow-command.yaml} (100%) rename .github/workflows/{workflow_dispatch_inputs.yaml => workflow-dispatch-inputs.yaml} (100%) rename .github/workflows/{workflow_dispatch_mixed_inputs.yaml => workflow-dispatch-mixed-inputs.yaml} (100%) diff --git a/.github/workflows/_reusable_dump_context.yaml b/.github/workflows/_reusable-dump-context.yaml similarity index 100% rename from .github/workflows/_reusable_dump_context.yaml rename to .github/workflows/_reusable-dump-context.yaml diff --git a/.github/workflows/_reusable_workflow_called.yaml b/.github/workflows/_reusable-workflow-called.yaml similarity index 100% rename from .github/workflows/_reusable_workflow_called.yaml rename to .github/workflows/_reusable-workflow-called.yaml diff --git a/.github/workflows/_reusable_workflow_nest.yaml b/.github/workflows/_reusable-workflow-nest.yaml similarity index 87% rename from .github/workflows/_reusable_workflow_nest.yaml rename to .github/workflows/_reusable-workflow-nest.yaml index fecdbd06..13f648e1 100644 --- a/.github/workflows/_reusable_workflow_nest.yaml +++ b/.github/workflows/_reusable-workflow-nest.yaml @@ -14,7 +14,7 @@ on: # nested call is supported jobs: call-workflow-passing-data: - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: ${{ inputs.username }} is-valid: ${{ inputs.is-valid }} diff --git a/.github/workflows/action_default.yaml b/.github/workflows/action-default.yaml similarity index 100% rename from .github/workflows/action_default.yaml rename to .github/workflows/action-default.yaml diff --git a/.github/workflows/action_env_diff.yaml b/.github/workflows/action-env-diff.yaml similarity index 100% rename from .github/workflows/action_env_diff.yaml rename to .github/workflows/action-env-diff.yaml diff --git a/.github/workflows/actionlint_reviewdog.yaml b/.github/workflows/actionlint-reviewdog.yaml similarity index 100% rename from .github/workflows/actionlint_reviewdog.yaml rename to .github/workflows/actionlint-reviewdog.yaml diff --git a/.github/workflows/actionrunner_info.yaml b/.github/workflows/actionrunner-info.yaml similarity index 100% rename from .github/workflows/actionrunner_info.yaml rename to .github/workflows/actionrunner-info.yaml diff --git a/.github/workflows/actions_telemetry.yaml b/.github/workflows/actions-telemetry.yaml similarity index 100% rename from .github/workflows/actions_telemetry.yaml rename to .github/workflows/actions-telemetry.yaml diff --git a/.github/workflows/actions_timeline.yaml b/.github/workflows/actions-timeline.yaml similarity index 100% rename from .github/workflows/actions_timeline.yaml rename to .github/workflows/actions-timeline.yaml diff --git a/.github/workflows/artifacts_directory.yaml b/.github/workflows/artifacts-directory.yaml similarity index 100% rename from .github/workflows/artifacts_directory.yaml rename to .github/workflows/artifacts-directory.yaml diff --git a/.github/workflows/artifacts_file.yaml b/.github/workflows/artifacts-file.yaml similarity index 100% rename from .github/workflows/artifacts_file.yaml rename to .github/workflows/artifacts-file.yaml diff --git a/.github/workflows/artifacts_targz.yaml b/.github/workflows/artifacts-targz.yaml similarity index 100% rename from .github/workflows/artifacts_targz.yaml rename to .github/workflows/artifacts-targz.yaml diff --git a/.github/workflows/auto_doc.yaml b/.github/workflows/auto-doc.yaml similarity index 100% rename from .github/workflows/auto_doc.yaml rename to .github/workflows/auto-doc.yaml diff --git a/.github/workflows/auto_dump_context.yaml b/.github/workflows/auto-dump-context.yaml similarity index 93% rename from .github/workflows/auto_dump_context.yaml rename to .github/workflows/auto-dump-context.yaml index 89f621fe..2f84bb80 100644 --- a/.github/workflows/auto_dump_context.yaml +++ b/.github/workflows/auto-dump-context.yaml @@ -29,6 +29,6 @@ permissions: jobs: dump: if: ${{ github.actor != 'dependabot[bot]' }} - uses: ./.github/workflows/_reusable_dump_context.yaml + uses: ./.github/workflows/_reusable-dump-context.yaml with: output-path: contexts diff --git a/.github/workflows/aws_cli.yaml b/.github/workflows/aws-cli.yaml similarity index 100% rename from .github/workflows/aws_cli.yaml rename to .github/workflows/aws-cli.yaml diff --git a/.github/workflows/aws_oidc_credential.yaml b/.github/workflows/aws-oidc-credential.yaml similarity index 100% rename from .github/workflows/aws_oidc_credential.yaml rename to .github/workflows/aws-oidc-credential.yaml diff --git a/.github/workflows/ban_word_checker.yaml b/.github/workflows/ban-word-checker.yaml similarity index 100% rename from .github/workflows/ban_word_checker.yaml rename to .github/workflows/ban-word-checker.yaml diff --git a/.github/workflows/ban_word_conftest.yaml b/.github/workflows/ban-word-conftest.yaml similarity index 67% rename from .github/workflows/ban_word_conftest.yaml rename to .github/workflows/ban-word-conftest.yaml index 6cb8a369..c0d43f89 100644 --- a/.github/workflows/ban_word_conftest.yaml +++ b/.github/workflows/ban-word-conftest.yaml @@ -14,11 +14,11 @@ jobs: - name: test dev uses: instrumenta/conftest-action@ae9212d5c0c26e21eedf359e2889d0d5d39dabd4 with: - files: ./.github/workflows/k8s_manifest_manual.yaml ./.github/workflows/k8s_manifest_pr.yaml ./.github/workflows/k8s_manifest_push.yaml + files: ./.github/workflows/k8s-manifest-manual.yaml ./.github/workflows/k8s-manifest-pr.yaml ./.github/workflows/k8s-manifest-push.yaml policy: ./.github/policy/dev_env.rego - name: test staging uses: instrumenta/conftest-action@ae9212d5c0c26e21eedf359e2889d0d5d39dabd4 with: - files: ./.github/workflows/k8s_manifest_manual.yaml ./.github/workflows/k8s_manifest_pr.yaml ./.github/workflows/k8s_manifest_push.yaml + files: ./.github/workflows/k8s-manifest-manual.yaml ./.github/workflows/k8s-manifest-pr.yaml ./.github/workflows/k8s-manifest-push.yaml policy: ./.github/policy/staging_env.rego continue-on-error: true diff --git a/.github/workflows/branch_push_only.yaml b/.github/workflows/branch-push-only.yaml similarity index 100% rename from .github/workflows/branch_push_only.yaml rename to .github/workflows/branch-push-only.yaml diff --git a/.github/workflows/cancel_redundantbuild.yaml b/.github/workflows/cancel-redundantbuild.yaml similarity index 100% rename from .github/workflows/cancel_redundantbuild.yaml rename to .github/workflows/cancel-redundantbuild.yaml diff --git a/.github/workflows/comment_run.yaml b/.github/workflows/comment-run.yaml similarity index 100% rename from .github/workflows/comment_run.yaml rename to .github/workflows/comment-run.yaml diff --git a/.github/workflows/concurrency_control_cancel_in_progress.yaml b/.github/workflows/concurrency-control-cancel-in-progress.yaml similarity index 100% rename from .github/workflows/concurrency_control_cancel_in_progress.yaml rename to .github/workflows/concurrency-control-cancel-in-progress.yaml diff --git a/.github/workflows/concurrency_control.yaml b/.github/workflows/concurrency-control.yaml similarity index 100% rename from .github/workflows/concurrency_control.yaml rename to .github/workflows/concurrency-control.yaml diff --git a/.github/workflows/context_github.yaml b/.github/workflows/context-github.yaml similarity index 100% rename from .github/workflows/context_github.yaml rename to .github/workflows/context-github.yaml diff --git a/.github/workflows/continue_on_error.yaml b/.github/workflows/continue-on-error.yaml similarity index 100% rename from .github/workflows/continue_on_error.yaml rename to .github/workflows/continue-on-error.yaml diff --git a/.github/workflows/create_pr.yaml b/.github/workflows/create-pr.yaml similarity index 100% rename from .github/workflows/create_pr.yaml rename to .github/workflows/create-pr.yaml diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create-release.yaml similarity index 100% rename from .github/workflows/create_release.yaml rename to .github/workflows/create-release.yaml diff --git a/.github/workflows/create_tag.yaml b/.github/workflows/create-tag.yaml similarity index 100% rename from .github/workflows/create_tag.yaml rename to .github/workflows/create-tag.yaml diff --git a/.github/workflows/crlf_checker.yaml b/.github/workflows/crlf-checker.yaml similarity index 100% rename from .github/workflows/crlf_checker.yaml rename to .github/workflows/crlf-checker.yaml diff --git a/.github/workflows/dispatch_changes_actions.yaml b/.github/workflows/dispatch-changes-actions.yaml similarity index 100% rename from .github/workflows/dispatch_changes_actions.yaml rename to .github/workflows/dispatch-changes-actions.yaml diff --git a/.github/workflows/dispatch_changes.yaml b/.github/workflows/dispatch-changes.yaml similarity index 100% rename from .github/workflows/dispatch_changes.yaml rename to .github/workflows/dispatch-changes.yaml diff --git a/.github/workflows/dotnet_build_only_tag.yaml b/.github/workflows/dotnet-build-only-tag.yaml similarity index 100% rename from .github/workflows/dotnet_build_only_tag.yaml rename to .github/workflows/dotnet-build-only-tag.yaml diff --git a/.github/workflows/dotnet_build.yaml b/.github/workflows/dotnet-build.yaml similarity index 100% rename from .github/workflows/dotnet_build.yaml rename to .github/workflows/dotnet-build.yaml diff --git a/.github/workflows/dotnet_lint.yaml b/.github/workflows/dotnet-lint.yaml similarity index 100% rename from .github/workflows/dotnet_lint.yaml rename to .github/workflows/dotnet-lint.yaml diff --git a/.github/workflows/dotnet_sln_list.yaml b/.github/workflows/dotnet-sln-list.yaml similarity index 100% rename from .github/workflows/dotnet_sln_list.yaml rename to .github/workflows/dotnet-sln-list.yaml diff --git a/.github/workflows/dump_context.yaml b/.github/workflows/dump-context.yaml similarity index 100% rename from .github/workflows/dump_context.yaml rename to .github/workflows/dump-context.yaml diff --git a/.github/workflows/env_with_script.yaml b/.github/workflows/env-with-script.yaml similarity index 100% rename from .github/workflows/env_with_script.yaml rename to .github/workflows/env-with-script.yaml diff --git a/.github/workflows/environment_deploy.yaml b/.github/workflows/environment-deploy.yaml similarity index 100% rename from .github/workflows/environment_deploy.yaml rename to .github/workflows/environment-deploy.yaml diff --git a/.github/workflows/error_detect_job.yaml b/.github/workflows/error-detect-job.yaml similarity index 100% rename from .github/workflows/error_detect_job.yaml rename to .github/workflows/error-detect-job.yaml diff --git a/.github/workflows/fake_ternary.yaml b/.github/workflows/fake-ternary.yaml similarity index 100% rename from .github/workflows/fake_ternary.yaml rename to .github/workflows/fake-ternary.yaml diff --git a/.github/workflows/file_change_detect_dorny.yaml b/.github/workflows/file-change-detect-dorny.yaml similarity index 100% rename from .github/workflows/file_change_detect_dorny.yaml rename to .github/workflows/file-change-detect-dorny.yaml diff --git a/.github/workflows/file_change_detect_tj.yaml b/.github/workflows/file-change-detect-tj.yaml similarity index 100% rename from .github/workflows/file_change_detect_tj.yaml rename to .github/workflows/file-change-detect-tj.yaml diff --git a/.github/workflows/file_change_detect_trilom.yaml b/.github/workflows/file-change-detect-trilom.yaml similarity index 100% rename from .github/workflows/file_change_detect_trilom.yaml rename to .github/workflows/file-change-detect-trilom.yaml diff --git a/.github/workflows/file_change_matrix.yaml b/.github/workflows/file-change-matrix.yaml similarity index 100% rename from .github/workflows/file_change_matrix.yaml rename to .github/workflows/file-change-matrix.yaml diff --git a/.github/workflows/git_sparsecheckout_exclude.yaml b/.github/workflows/git-sparsecheckout-exclude.yaml similarity index 100% rename from .github/workflows/git_sparsecheckout_exclude.yaml rename to .github/workflows/git-sparsecheckout-exclude.yaml diff --git a/.github/workflows/git_sparsecheckout_nocorn.yaml b/.github/workflows/git-sparsecheckout-nocorn.yaml similarity index 100% rename from .github/workflows/git_sparsecheckout_nocorn.yaml rename to .github/workflows/git-sparsecheckout-nocorn.yaml diff --git a/.github/workflows/git_sparsecheckout.yaml b/.github/workflows/git-sparsecheckout.yaml similarity index 100% rename from .github/workflows/git_sparsecheckout.yaml rename to .github/workflows/git-sparsecheckout.yaml diff --git a/.github/workflows/git_tag.yaml b/.github/workflows/git-tag.yaml similarity index 100% rename from .github/workflows/git_tag.yaml rename to .github/workflows/git-tag.yaml diff --git a/.github/workflows/github_api.yaml b/.github/workflows/github-api.yaml similarity index 100% rename from .github/workflows/github_api.yaml rename to .github/workflows/github-api.yaml diff --git a/.github/workflows/if_and_concat.yaml b/.github/workflows/if-and-concat.yaml similarity index 100% rename from .github/workflows/if_and_concat.yaml rename to .github/workflows/if-and-concat.yaml diff --git a/.github/workflows/if_and_context.yaml b/.github/workflows/if-and-context.yaml similarity index 100% rename from .github/workflows/if_and_context.yaml rename to .github/workflows/if-and-context.yaml diff --git a/.github/workflows/install_tool.yaml b/.github/workflows/install-tool.yaml similarity index 100% rename from .github/workflows/install_tool.yaml rename to .github/workflows/install-tool.yaml diff --git a/.github/workflows/k8s_manifest_manual.yaml b/.github/workflows/k8s-manifest-manual.yaml similarity index 100% rename from .github/workflows/k8s_manifest_manual.yaml rename to .github/workflows/k8s-manifest-manual.yaml diff --git a/.github/workflows/k8s_manifest_pr.yaml b/.github/workflows/k8s-manifest-pr.yaml similarity index 100% rename from .github/workflows/k8s_manifest_pr.yaml rename to .github/workflows/k8s-manifest-pr.yaml diff --git a/.github/workflows/k8s_manifest_push.yaml b/.github/workflows/k8s-manifest-push.yaml similarity index 100% rename from .github/workflows/k8s_manifest_push.yaml rename to .github/workflows/k8s-manifest-push.yaml diff --git a/.github/workflows/k8s_setup_kubectl.yaml b/.github/workflows/k8s-setup-kubectl.yaml similarity index 100% rename from .github/workflows/k8s_setup_kubectl.yaml rename to .github/workflows/k8s-setup-kubectl.yaml diff --git a/.github/workflows/manual_trigger.yaml b/.github/workflows/manual-trigger.yaml similarity index 100% rename from .github/workflows/manual_trigger.yaml rename to .github/workflows/manual-trigger.yaml diff --git a/.github/workflows/matrix_envvar.yaml b/.github/workflows/matrix-envvar.yaml similarity index 100% rename from .github/workflows/matrix_envvar.yaml rename to .github/workflows/matrix-envvar.yaml diff --git a/.github/workflows/matrix_includesonly.yaml b/.github/workflows/matrix-includesonly.yaml similarity index 100% rename from .github/workflows/matrix_includesonly.yaml rename to .github/workflows/matrix-includesonly.yaml diff --git a/.github/workflows/matrix_secret.yaml b/.github/workflows/matrix-secret.yaml similarity index 100% rename from .github/workflows/matrix_secret.yaml rename to .github/workflows/matrix-secret.yaml diff --git a/.github/workflows/merge_branch_pr.yaml b/.github/workflows/merge-branch-pr.yaml similarity index 100% rename from .github/workflows/merge_branch_pr.yaml rename to .github/workflows/merge-branch-pr.yaml diff --git a/.github/workflows/merge_branch.yaml b/.github/workflows/merge-branch.yaml similarity index 100% rename from .github/workflows/merge_branch.yaml rename to .github/workflows/merge-branch.yaml diff --git a/.github/workflows/multiline_if.yaml b/.github/workflows/multiline-if.yaml similarity index 100% rename from .github/workflows/multiline_if.yaml rename to .github/workflows/multiline-if.yaml diff --git a/.github/workflows/multiline_inputs.yaml b/.github/workflows/multiline-inputs.yaml similarity index 100% rename from .github/workflows/multiline_inputs.yaml rename to .github/workflows/multiline-inputs.yaml diff --git a/.github/workflows/multiline_run.yaml b/.github/workflows/multiline-run.yaml similarity index 100% rename from .github/workflows/multiline_run.yaml rename to .github/workflows/multiline-run.yaml diff --git a/.github/workflows/needs_not_require_success.yaml b/.github/workflows/needs-not-require-success.yaml similarity index 100% rename from .github/workflows/needs_not_require_success.yaml rename to .github/workflows/needs-not-require-success.yaml diff --git a/.github/workflows/needs_require_success.yaml b/.github/workflows/needs-require-success.yaml similarity index 100% rename from .github/workflows/needs_require_success.yaml rename to .github/workflows/needs-require-success.yaml diff --git a/.github/workflows/needs_skip_handling.yaml b/.github/workflows/needs-skip-handling.yaml similarity index 100% rename from .github/workflows/needs_skip_handling.yaml rename to .github/workflows/needs-skip-handling.yaml diff --git a/.github/workflows/needs_skip_no_handling.yaml b/.github/workflows/needs-skip-no-handling.yaml similarity index 100% rename from .github/workflows/needs_skip_no_handling.yaml rename to .github/workflows/needs-skip-no-handling.yaml diff --git a/.github/workflows/nest_actions.yaml b/.github/workflows/nest-actions.yaml similarity index 100% rename from .github/workflows/nest_actions.yaml rename to .github/workflows/nest-actions.yaml diff --git a/.github/workflows/permissions_job.yaml b/.github/workflows/permissions-job.yaml similarity index 100% rename from .github/workflows/permissions_job.yaml rename to .github/workflows/permissions-job.yaml diff --git a/.github/workflows/permissions_workflow.yaml b/.github/workflows/permissions-workflow.yaml similarity index 100% rename from .github/workflows/permissions_workflow.yaml rename to .github/workflows/permissions-workflow.yaml diff --git a/.github/workflows/pr_close.yaml b/.github/workflows/pr-close.yaml similarity index 100% rename from .github/workflows/pr_close.yaml rename to .github/workflows/pr-close.yaml diff --git a/.github/workflows/pr_from_merge_commit.yaml b/.github/workflows/pr-from-merge-commit.yaml similarity index 100% rename from .github/workflows/pr_from_merge_commit.yaml rename to .github/workflows/pr-from-merge-commit.yaml diff --git a/.github/workflows/pr_label_get.yaml b/.github/workflows/pr-label-get.yaml similarity index 100% rename from .github/workflows/pr_label_get.yaml rename to .github/workflows/pr-label-get.yaml diff --git a/.github/workflows/prevent_file_change1.yaml b/.github/workflows/prevent-file-change1.yaml similarity index 100% rename from .github/workflows/prevent_file_change1.yaml rename to .github/workflows/prevent-file-change1.yaml diff --git a/.github/workflows/prevent_file_change2.yaml b/.github/workflows/prevent-file-change2.yaml similarity index 100% rename from .github/workflows/prevent_file_change2.yaml rename to .github/workflows/prevent-file-change2.yaml diff --git a/.github/workflows/prevent_file_change3.yaml b/.github/workflows/prevent-file-change3.yaml similarity index 100% rename from .github/workflows/prevent_file_change3.yaml rename to .github/workflows/prevent-file-change3.yaml diff --git a/.github/workflows/prevent_file_change4.yaml b/.github/workflows/prevent-file-change4.yaml similarity index 100% rename from .github/workflows/prevent_file_change4.yaml rename to .github/workflows/prevent-file-change4.yaml diff --git a/.github/workflows/push_and_pr_avoid_redundant.yaml b/.github/workflows/push-and-pr-avoid-redundant.yaml similarity index 100% rename from .github/workflows/push_and_pr_avoid_redundant.yaml rename to .github/workflows/push-and-pr-avoid-redundant.yaml diff --git a/.github/workflows/push_and_pr.yaml b/.github/workflows/push-and-pr.yaml similarity index 100% rename from .github/workflows/push_and_pr.yaml rename to .github/workflows/push-and-pr.yaml diff --git a/.github/workflows/reusable_workflow_caller_internal.yaml b/.github/workflows/reusable-workflow-caller-internal.yaml similarity index 90% rename from .github/workflows/reusable_workflow_caller_internal.yaml rename to .github/workflows/reusable-workflow-caller-internal.yaml index 20f02ec9..2e147c95 100644 --- a/.github/workflows/reusable_workflow_caller_internal.yaml +++ b/.github/workflows/reusable-workflow-caller-internal.yaml @@ -11,7 +11,7 @@ env: CALLER_VALUE: caller jobs: call-workflow-passing-data: - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: "foo" is-valid: true diff --git a/.github/workflows/reusable_workflow_caller_matrix.yaml b/.github/workflows/reusable-workflow-caller-matrix.yaml similarity index 83% rename from .github/workflows/reusable_workflow_caller_matrix.yaml rename to .github/workflows/reusable-workflow-caller-matrix.yaml index 086a579b..63aa589f 100644 --- a/.github/workflows/reusable_workflow_caller_matrix.yaml +++ b/.github/workflows/reusable-workflow-caller-matrix.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: username: [foo, bar] - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: ${{ matrix.username }} is-valid: true diff --git a/.github/workflows/reusable_workflow_caller_nest.yaml b/.github/workflows/reusable-workflow-caller-nest.yaml similarity index 80% rename from .github/workflows/reusable_workflow_caller_nest.yaml rename to .github/workflows/reusable-workflow-caller-nest.yaml index 16d6169d..da2f0515 100644 --- a/.github/workflows/reusable_workflow_caller_nest.yaml +++ b/.github/workflows/reusable-workflow-caller-nest.yaml @@ -8,7 +8,7 @@ on: jobs: call-workflow-passing-data: - uses: ./.github/workflows/_reusable_workflow_nest.yaml + uses: ./.github/workflows/_reusable-workflow-nest.yaml with: username: "foo" is-valid: true diff --git a/.github/workflows/reusable_workflow_public_caller.yaml b/.github/workflows/reusable-workflow-public-caller.yaml similarity index 94% rename from .github/workflows/reusable_workflow_public_caller.yaml rename to .github/workflows/reusable-workflow-public-caller.yaml index a32d80c8..9fbb8221 100644 --- a/.github/workflows/reusable_workflow_public_caller.yaml +++ b/.github/workflows/reusable-workflow-public-caller.yaml @@ -8,7 +8,7 @@ on: jobs: call-workflow-passing-data: - uses: guitarrapc/githubactions-lab/.github/workflows/_reusable_workflow_called.yaml@main + uses: guitarrapc/githubactions-lab/.github/workflows/_reusable-workflow-called.yaml@main with: username: foo is-valid: true diff --git a/.github/workflows/reuse_local_actions_node.yaml b/.github/workflows/reuse-local-actions-node.yaml similarity index 100% rename from .github/workflows/reuse_local_actions_node.yaml rename to .github/workflows/reuse-local-actions-node.yaml diff --git a/.github/workflows/reuse_local_actions.yaml b/.github/workflows/reuse-local-actions.yaml similarity index 100% rename from .github/workflows/reuse_local_actions.yaml rename to .github/workflows/reuse-local-actions.yaml diff --git a/.github/workflows/schedule_job.yaml b/.github/workflows/schedule-job.yaml similarity index 100% rename from .github/workflows/schedule_job.yaml rename to .github/workflows/schedule-job.yaml diff --git a/.github/workflows/secrets_access.yaml b/.github/workflows/secrets-access.yaml similarity index 100% rename from .github/workflows/secrets_access.yaml rename to .github/workflows/secrets-access.yaml diff --git a/.github/workflows/sequential_run.yaml b/.github/workflows/sequential-run.yaml similarity index 100% rename from .github/workflows/sequential_run.yaml rename to .github/workflows/sequential-run.yaml diff --git a/.github/workflows/setup-dotnet.yaml b/.github/workflows/setup-dotnet.yaml index 6658c90b..5f846e14 100644 --- a/.github/workflows/setup-dotnet.yaml +++ b/.github/workflows/setup-dotnet.yaml @@ -69,7 +69,7 @@ jobs: with: dotnet-version: 8.0.x env: - DOTNET_INSTALL_DIR: ${{ runner.temp}}/.dotnet + DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet - name: dotnet after setup-dotnet (/usr/share/dotnet/dotnet) run: | echo "::group::dotnet path" diff --git a/.github/workflows/shellscript_error_on_return.yaml b/.github/workflows/shellscript-error-on-return.yaml similarity index 100% rename from .github/workflows/shellscript_error_on_return.yaml rename to .github/workflows/shellscript-error-on-return.yaml diff --git a/.github/workflows/skip_ci_pr_title.yaml b/.github/workflows/skip-ci-pr-title.yaml similarity index 100% rename from .github/workflows/skip_ci_pr_title.yaml rename to .github/workflows/skip-ci-pr-title.yaml diff --git a/.github/workflows/skip_draft_but_label_pr.yaml b/.github/workflows/skip-draft-but-label-pr.yaml similarity index 100% rename from .github/workflows/skip_draft_but_label_pr.yaml rename to .github/workflows/skip-draft-but-label-pr.yaml diff --git a/.github/workflows/skip_draft_pr.yaml b/.github/workflows/skip-draft-pr.yaml similarity index 100% rename from .github/workflows/skip_draft_pr.yaml rename to .github/workflows/skip-draft-pr.yaml diff --git a/.github/workflows/skip_pr_from_fork.yaml b/.github/workflows/skip-pr-from-fork.yaml similarity index 100% rename from .github/workflows/skip_pr_from_fork.yaml rename to .github/workflows/skip-pr-from-fork.yaml diff --git a/.github/workflows/status_step.yaml b/.github/workflows/status-step.yaml similarity index 100% rename from .github/workflows/status_step.yaml rename to .github/workflows/status-step.yaml diff --git a/.github/workflows/tag_push_only_context.yaml b/.github/workflows/tag-push-only-context.yaml similarity index 100% rename from .github/workflows/tag_push_only_context.yaml rename to .github/workflows/tag-push-only-context.yaml diff --git a/.github/workflows/tag_push_only_pattern.yaml b/.github/workflows/tag-push-only-pattern.yaml similarity index 100% rename from .github/workflows/tag_push_only_pattern.yaml rename to .github/workflows/tag-push-only-pattern.yaml diff --git a/.github/workflows/tag_push_only.yaml b/.github/workflows/tag-push-only.yaml similarity index 100% rename from .github/workflows/tag_push_only.yaml rename to .github/workflows/tag-push-only.yaml diff --git a/.github/workflows/trigger_ci.yaml b/.github/workflows/trigger-ci.yaml similarity index 100% rename from .github/workflows/trigger_ci.yaml rename to .github/workflows/trigger-ci.yaml diff --git a/.github/workflows/update_package.yaml b/.github/workflows/update-package.yaml similarity index 100% rename from .github/workflows/update_package.yaml rename to .github/workflows/update-package.yaml diff --git a/.github/workflows/variables_access.yaml b/.github/workflows/variables-access.yaml similarity index 100% rename from .github/workflows/variables_access.yaml rename to .github/workflows/variables-access.yaml diff --git a/.github/workflows/workflow_command.yaml b/.github/workflows/workflow-command.yaml similarity index 100% rename from .github/workflows/workflow_command.yaml rename to .github/workflows/workflow-command.yaml diff --git a/.github/workflows/workflow_dispatch_inputs.yaml b/.github/workflows/workflow-dispatch-inputs.yaml similarity index 100% rename from .github/workflows/workflow_dispatch_inputs.yaml rename to .github/workflows/workflow-dispatch-inputs.yaml diff --git a/.github/workflows/workflow_dispatch_mixed_inputs.yaml b/.github/workflows/workflow-dispatch-mixed-inputs.yaml similarity index 100% rename from .github/workflows/workflow_dispatch_mixed_inputs.yaml rename to .github/workflows/workflow-dispatch-mixed-inputs.yaml diff --git a/README.md b/README.md index efc4fc4e..d0796c07 100644 --- a/README.md +++ b/README.md @@ -377,7 +377,7 @@ Make sure you can not refer `gitHub` context in script. > see: [Context and expression syntax for GitHub Actions \- GitHub Help](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context) ```yaml -# .github/workflows/context_github.yaml +# .github/workflows/context-github.yaml name: "context github" on: @@ -428,7 +428,7 @@ jobs: Use `toJson()` To show context values in json. ```yaml -# .github/workflows/dump_context.yaml +# .github/workflows/dump-context.yaml name: dump context on: @@ -508,7 +508,7 @@ echo branch=${GITHUB_REF} | tee -a "$GITHUB_OUTPUT" Call this script from workflow. ```yaml -# .github/workflows/env_with_script.yaml +# .github/workflows/env-with-script.yaml name: env with script on: @@ -632,7 +632,7 @@ You don't need add `${{}}` to context reference. but I do recomment add it for e > [Solved: What is the correct if condition syntax for checki/././. /- GitHub Community Forum](https://github.community/t5/GitHub-Actions/What-is-the-correct-if-condition-syntax-for-checking-matrix-os/td-p/31269) ```yaml -# .github/workflows/if_and_context.yaml +# .github/workflows/if-and-context.yaml name: if and context reference on: @@ -689,7 +689,7 @@ jobs: See actual sample. ```yaml -# .github/workflows/needs_require_success.yaml +# .github/workflows/needs-require-success.yaml name: needs require success @@ -738,7 +738,7 @@ jobs: See actual sample. ```yaml -# .github/workflows/needs_not_require_success.yaml +# .github/workflows/needs-not-require-success.yaml name: needs not require success @@ -778,7 +778,7 @@ Job `needs` can be used for skip handling. However skipping dependent job cause Following workflow expected to run `D` when `C` is invoked. But skipping `A` and `B` cause `D` skip. ```yaml -# .github/workflows/needs_skip_no_handling.yaml +# .github/workflows/needs-skip-no-handling.yaml name: needs skip no handling @@ -819,7 +819,7 @@ jobs: To handle `D` to run when `C` is invoked, you need to add `if` condition to `D`. Also handle when no conditional `C` invokation, `A`, `B` and `C` is success, then `D` must run. ```yaml -# .github/workflows/needs_skip_handling.yaml +# .github/workflows/needs-skip-handling.yaml name: needs skip handling @@ -873,7 +873,7 @@ You can turn all permission off with `permissions: {}`. Workflow permission can be done with root `permissions:`. ```yaml -# .github/workflows/permissions_workflow.yaml +# .github/workflows/permissions-workflow.yaml name: permissions on: @@ -905,7 +905,7 @@ jobs: job permission can be done with `job..permissions`. ```yaml -# .github/workflows/permissions_job.yaml +# .github/workflows/permissions-job.yaml name: permissions job on: @@ -966,7 +966,7 @@ runs: - step3. Use actions from your workflow. ```yaml -# .github/workflows/reuse_local_actions.yaml +# .github/workflows/reuse-local-actions.yaml name: reuse local action on: @@ -1022,7 +1022,7 @@ console.log("Hello, World!"); - step4. Use actions from your workflow. ```yaml -# .github/workflows/reuse_local_actions_node.yaml +# .github/workflows/reuse-local-actions-node.yaml name: reuse local action node on: @@ -1089,7 +1089,7 @@ Place Reusable workflow yaml file under `.github/workflows/` then set `on.workfl Any `inputs`, `secrets` and `outputs` should define onder on.workflow_call. ```yaml -# .github/workflows/_reusable_workflow_called.yaml +# .github/workflows/_reusable-workflow-called.yaml name: _reusable workflow called on: @@ -1153,7 +1153,7 @@ When you want pass `boolean` type of input from workflow_dispatch to workflow_ca See [Type converter with fromJson](#type-converter-with-fromJson) for the detail. ```yaml -# .github/workflows/reusable_workflow_caller_internal.yaml +# .github/workflows/reusable-workflow-caller-internal.yaml name: reusable workflow caller (internal) on: @@ -1168,7 +1168,7 @@ env: CALLER_VALUE: caller jobs: call-workflow-passing-data: - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: "foo" is-valid: true @@ -1189,7 +1189,7 @@ Yo call public repository's reusable workflow, use `uses: GITHUB_OWNER/REPOSITOR > **Warning**: To call private repository's reusable workflow, you must use absolute path of self repository. ```yaml -# .github/workflows/reusable_workflow_public_caller.yaml +# .github/workflows/reusable-workflow-public-caller.yaml name: reusable workflow caller (public) on: @@ -1201,7 +1201,7 @@ on: jobs: call-workflow-passing-data: - uses: guitarrapc/githubactions-lab/.github/workflows/_reusable_workflow_called.yaml@main + uses: guitarrapc/githubactions-lab/.github/workflows/_reusable-workflow-called.yaml@main with: username: foo is-valid: true @@ -1220,7 +1220,7 @@ jobs: Reusable Workflow caller cannot use matrix, but callee can use matrix. (see limitation.) ```yaml -# .github/workflows/reusable_workflow_caller_matrix.yaml +# .github/workflows/reusable-workflow-caller-matrix.yaml name: reusable workflow caller (matrix) on: @@ -1235,7 +1235,7 @@ jobs: strategy: matrix: username: [foo, bar] - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: ${{ matrix.username }} is-valid: true @@ -1248,7 +1248,7 @@ jobs: Reusalbe workflow can call other reusable workflow, it means nested call is supported. ```yaml -# .github/workflows/_reusable_workflow_nest.yaml +# .github/workflows/_reusable-workflow-nest.yaml name: _reusable workflow nest on: @@ -1266,7 +1266,7 @@ on: # nested call is supported jobs: call-workflow-passing-data: - uses: ./.github/workflows/_reusable_workflow_called.yaml + uses: ./.github/workflows/_reusable-workflow-called.yaml with: username: ${{ inputs.username }} is-valid: ${{ inputs.is-valid }} @@ -1280,7 +1280,7 @@ to accomplish sequential job run inside workflow, use `needs:` for which you wan this enforce job to be run when only previous job is **success**. ```yaml -# .github/workflows/sequential_run.yaml +# .github/workflows/sequential-run.yaml name: sequential jobs on: @@ -1313,7 +1313,7 @@ jobs: use `if:` you want set step to be run on particular status. ```yaml -# .github/workflows/status_step.yaml +# .github/workflows/status-step.yaml name: status step on: @@ -1350,7 +1350,7 @@ There are many place to support multiline. Use `run: |` to write `run` statement in multiline. ```yaml -# .github/workflows/multiline_run.yaml +# .github/workflows/multiline-run.yaml name: multiline run on: @@ -1373,7 +1373,7 @@ jobs: Use `if: >-` to write `if` statement in multiline. ```yaml -# .github/workflows/multiline_if.yaml +# .github/workflows/multiline-if.yaml name: multiline if on: @@ -1407,7 +1407,7 @@ let's set secrets in settings. ![image](https://user-images.githubusercontent.com/3856350/79934065-99de6c00-848c-11ea-8995-bfe948e6c0fb.png) ```yaml -# .github/workflows/matrix_secret.yaml +# .github/workflows/matrix-secret.yaml name: matrix secret on: @@ -1448,7 +1448,7 @@ you can refer matrix in job's `env:` section before steps. However you cannot use expression, you must evaluate in step. ```yaml -# .github/workflows/matrix_envvar.yaml +# .github/workflows/matrix-envvar.yaml name: matrix envvar on: @@ -1513,7 +1513,7 @@ This help you achieve serial build pipeline control. You can use build context like `github.head_ref` or others. This means you can control with commit, branch, workflow and any. ```yaml -# .github/workflows/concurrency_control.yaml +# .github/workflows/concurrency-control.yaml name: "concurrency control" @@ -1534,7 +1534,7 @@ jobs: Specify `cancel-in-progress: true` will cancel parallel build. ```yaml -# .github/workflows/concurrency_control_cancel_in_progress.yaml +# .github/workflows/concurrency-control-cancel-in-progress.yaml name: "concurrency control cancel in progress" @@ -1560,7 +1560,7 @@ GitHub Actions offer `workflow_dispatch` event to execute workflow manually from Also you can use [action inputs](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs) to specify value trigger on manual trigger. ```yaml -# .github/workflows/manual_trigger.yaml +# .github/workflows/manual-trigger.yaml name: manual trigger on: @@ -1632,7 +1632,7 @@ Workflow dispatch supported input type. - environment: enum GitHub Environments and Web UI offers selection box. ```yaml -# .github/workflows/workflow_dispatch_mixed_inputs.yaml +# .github/workflows/workflow-dispatch-mixed-inputs.yaml name: workflow dispatch mixed inputs on: @@ -1692,7 +1692,7 @@ In this example `push` will trigger only when `main`, default branch. This means Simple enough for almost usage. ```yaml -# .github/workflows/push_and_pr_avoid_redundant.yaml +# .github/workflows/push-and-pr-avoid-redundant.yaml name: push and pull_request avoid redundant on: @@ -1715,7 +1715,7 @@ jobs: Cancel duplicate workflow and mark CI failure. ```yaml -# .github/workflows/cancel_redundantbuild.yaml +# .github/workflows/cancel-redundantbuild.yaml name: cancel redundant build # when pull_request, both push and pull_request (synchronize) will trigger. @@ -1755,7 +1755,7 @@ You can detect which file was changed with push or pull_request by GitHub action * `tj-actions/changed-files` is still actively developed. Usage is simple and output is static. ```yaml -# .github/workflows/file_change_detect_tj.yaml +# .github/workflows/file-change-detect-tj.yaml name: file change detect tj on: @@ -1810,7 +1810,7 @@ jobs: `dorny/paths-filter` is still actively developed. However it's output is quite dynamic and hard to handle static lint like actionlint. ```yaml -# .github/workflows/file_change_detect_dorny.yaml +# .github/workflows/file-change-detect-dorny.yaml name: file change detect dorny on: @@ -1879,7 +1879,7 @@ jobs: `trilom/file-changes-action` stopped development, so I will quit using it. ```yaml -# .github/workflows/file_change_detect_dorny.yaml +# .github/workflows/file-change-detect-dorny.yaml name: file change detect dorny on: @@ -1959,7 +1959,7 @@ Don't forget pretend `refs/heads/` to your branch. - bad: some-branch ```yaml -# .github/workflows/schedule_job.yaml +# .github/workflows/schedule-job.yaml name: schedule job on: @@ -1984,7 +1984,7 @@ You can create release and upload assets through GitHub Actions. Multiple assets upload is supported by running running `actions/upload-release-asset` for each asset. ```yaml -# .github/workflows/create_release.yaml +# .github/workflows/create-release.yaml name: create release concurrency: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -2056,7 +2056,7 @@ jobs: If you want run job only when push to branch, and not for tag push. ```yaml -# .github/workflows/branch_push_only.yaml +# .github/workflows/branch-push-only.yaml name: branch push only on: @@ -2076,7 +2076,7 @@ jobs: ## Trigger commit message ```yaml -# .github/workflows/trigger_ci.yaml +# .github/workflows/trigger-ci.yaml name: trigger ci commit on: @@ -2099,7 +2099,7 @@ jobs: If you want run job only when push to tag, and not for branch push. ```yaml -# .github/workflows/tag_push_only.yaml +# .github/workflows/tag-push-only.yaml name: tag push only on: @@ -2129,7 +2129,7 @@ not for below. - release ```yaml -# .github/workflows/tag_push_only_pattern.yaml +# .github/workflows/tag-push-only-pattern.yaml name: tag push only pattern on: @@ -2152,7 +2152,7 @@ jobs: `${{ contains(github.event.pull_request.labels.*.name, 'hoge') }}` will return `true` if tag contains `hoge`. ```yaml -# .github/workflows/pr_label_get.yaml +# .github/workflows/pr-label-get.yaml name: pr label get on: @@ -2184,7 +2184,7 @@ original `pull_request` event will invoke when activity type is `opened`, `synch > [Events that trigger workflows /- GitHub Help](https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request) ```yaml -# .github/workflows/skip_ci_pr_title.yaml +# .github/workflows/skip-ci-pr-title.yaml name: skip ci pr title on: ["pull_request"] @@ -2215,7 +2215,7 @@ default `pull_request` event trigger from even fork repository, however fork pr To control job to be skip from fork but run on self pr or push, use `if` conditions. ```yaml -# .github/workflows/skip_pr_from_fork.yaml +# .github/workflows/skip-pr-from-fork.yaml name: skip pr from fork on: @@ -2244,7 +2244,7 @@ You can skip job and steps if Pull Request is Draft. Unfortunately GitHub Webhook v3 event not provide draft pr type, but `event.pull_request.draft` shows `true` when PR is draft. ```yaml -# .github/workflows/skip_draft_pr.yaml +# .github/workflows/skip-draft-pr.yaml name: skip draft pr on: @@ -2264,7 +2264,7 @@ jobs: You can control behaviour with PR label. ```yaml -# .github/workflows/skip_draft_but_label_pr.yaml +# .github/workflows/skip-draft-but-label-pr.yaml name: skip draft pr but label on: @@ -2294,7 +2294,7 @@ jobs: You cannot use `${{ env. }}` in `env:` section. Following is invalid with error. -> The workflow is not valid. .github/workflows/env_refer_env.yaml (Line: 12, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.global_env +> The workflow is not valid. .github/workflows/env-refer-env.yaml (Line: 12, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.global_env ```yaml name: you can not refer env in env @@ -2356,7 +2356,7 @@ GitHub Actions [actions/upload-artifact](https://github.com/actions/upload-artif **file** ```yaml -# .github/workflows/artifacts_file.yaml +# .github/workflows/artifacts-file.yaml name: artifacts (file) @@ -2401,7 +2401,7 @@ jobs: **directory** ```yaml -# .github/workflows/artifacts_directory.yaml +# .github/workflows/artifacts-directory.yaml name: artifacts (directory) @@ -2449,7 +2449,7 @@ jobs: **.tar.gz** ```yaml -# .github/workflows/artifacts_targz.yaml +# .github/workflows/artifacts-targz.yaml name: artifacts (tar.gz) @@ -2543,7 +2543,7 @@ Sparce checkout has 2 modes, `git sparse-checkout` and `git sparse-checkout --co Checkout "src/\*" and root files, but not checkout any not specified folders. ```yaml -# .github/workflows/git_sparsecheckout.yaml +# .github/workflows/git-sparsecheckout.yaml name: git sparsecheckout on: @@ -2602,7 +2602,7 @@ drwxr-xr-x 2 runner docker 4096 Jun 14 10:23 txt Checkout only "src/\*" path. All other files and folders will not checkout. ```yaml -# .github/workflows/git_sparsecheckout_nocorn.yaml +# .github/workflows/git-sparsecheckout-nocorn.yaml name: git sparsecheckout (no corn) on: @@ -2657,7 +2657,7 @@ drwxr-xr-x 2 runner docker 4096 Jun 14 10:23 txt Checkout except "src/_" path. All other files and folders will checkout by `/_`. ```yaml -# .github/workflows/git_sparsecheckout_exclude.yaml +# .github/workflows/git-sparsecheckout-exclude.yaml name: git sparsecheckout nocorn on: @@ -2739,7 +2739,7 @@ jobs: This repo will dispatch event with [Workflow Dispatch Action](https://github.com/marketplace/actions/workflow-dispatch) actions. ```yaml -# .github/workflows/dispatch_changes_actions.yaml +# .github/workflows/dispatch-changes-actions.yaml name: dispatch changes actions on: @@ -2773,7 +2773,7 @@ One of GitHub's vulnerable point is Workflow. Editting Workflow shoulbe be requi Easiest and simple way is use `pull_request` target and path filter, then detect PR is fork or not. There might be many ways to prevent file change. `xalvarez/prevent-file-change-action` can guard change in the step. Using `tj-actions/changed-files`, `dorny/paths-filter`, or others will be flexible way to detect change and do what you want. ```yaml -# .github/workflows/prevent_file_change1.yaml +# .github/workflows/prevent-file-change1.yaml name: prevent file change 1 on: @@ -2794,7 +2794,7 @@ jobs: ``` ```yaml -# .github/workflows/prevent_file_change2.yaml +# .github/workflows/prevent-file-change2.yaml name: prevent file change 2 on: @@ -2822,7 +2822,7 @@ jobs: ``` ```yaml -# .github/workflows/prevent_file_change3.yaml +# .github/workflows/prevent-file-change3.yaml name: prevent file change 3 on: @@ -2855,7 +2855,7 @@ jobs: ``` ```yaml -# .github/workflows/prevent_file_change4.yaml +# .github/workflows/prevent-file-change4.yaml name: prevent file change 4 on: @@ -2919,7 +2919,7 @@ jobs: If you need automated PR review, run actionlint with reviewdog. ```yaml -# .github/workflows/actionlint_reviewdog.yaml +# .github/workflows/actionlint-reviewdog.yaml name: actionlint (reviewdog) on: @@ -2955,7 +2955,7 @@ You have two choice. Below use [jwalton/gh-find-current-pr](https://github.com/jwalton/gh-find-current-pr) to retrieve PR info from merge commit. ```yaml -# .github/workflows/pr_from_merge_commit.yaml +# .github/workflows/pr-from-merge-commit.yaml name: pr from merge commit on: @@ -2989,7 +2989,7 @@ GitHub Actions [runforesight/workflow-telemetry-action](https://github.com/runfo To enable telemetry, set `runforesight/workflow-telemetry-action@v1` on the first step of your job, then action collect telemetry for later steps. ```yaml -# .github/workflows/actions_telemetry.yaml +# .github/workflows/actions-telemetry.yaml name: actions telemetry on: @@ -3056,7 +3056,7 @@ action folder naming also follow this rule. - push and others: `${{ github.ref }}` ```yaml -# .github/workflows/_reusable_dump_context.yaml#L20-L22 +# .github/workflows/_reusable-dump-context.yaml#L20-L22 # PR should checkout HEAD ref instead of merge commit. -> github.head.ref # PR close delete branch, so it should checkout BASE ref instead of HEAD ref. -> github.base_ref @@ -3073,7 +3073,7 @@ Trigger push with tag, then you have 2 choice. - `refs/tags/v1.0.0` -> `v1.0.0` ```yaml -# .github/workflows/tag_push_only_context.yaml +# .github/workflows/tag-push-only-context.yaml name: tag push context on: