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: