From de4f1c02725ee6d91c76d44ad969e96f849da438 Mon Sep 17 00:00:00 2001 From: Niall Byrne <9848926+niall-byrne@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:47:25 -0400 Subject: [PATCH] feat(GITHUB): standardize workflow needs clauses --- .../workflow-ansible-role-molecule.yml | 16 +++-- .../workflows/workflow-compose-command.yml | 8 ++- .../workflow-container-multiarch.yml | 23 +++++-- .../workflow-cookiecutter-template.yml | 56 ++++++++++++----- .github/workflows/workflow-mac_maker.yml | 7 ++- .github/workflows/workflow-meta_tests.yml | 60 ++++++++++++++----- .../workflow-npm-node_application.yml | 7 ++- .github/workflows/workflow-poetry-command.yml | 12 +++- .../.github/workflows/workflow-push.yml | 55 ++++++++++++----- 9 files changed, 182 insertions(+), 62 deletions(-) diff --git a/.github/workflows/workflow-ansible-role-molecule.yml b/.github/workflows/workflow-ansible-role-molecule.yml index a370c4a7..2e257614 100644 --- a/.github/workflows/workflow-ansible-role-molecule.yml +++ b/.github/workflows/workflow-ansible-role-molecule.yml @@ -35,7 +35,8 @@ jobs: WORKFLOW_NAME: "ansible" markdown_links: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-30-generic-markdown_links.yml @@ -45,7 +46,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA)._GITHUB_CI_DEFAULT_VERBOSE_NOTIFICATIONS }} ansible_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-40-cookiecutter-ansible_lint.yml @@ -58,7 +60,9 @@ jobs: WORKFLOW_NAME: "ansible" molecule_test: - needs: [configuration, ansible_lint] + needs: + - configuration + - ansible_lint secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-40-cookiecutter-molecule_command.yml @@ -72,7 +76,11 @@ jobs: WORKFLOW_NAME: "ansible" success: - needs: [configuration, markdown_links, molecule_test, start] + needs: + - configuration + - markdown_links + - molecule_test + - start secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-compose-command.yml b/.github/workflows/workflow-compose-command.yml index 1d74f11b..3a096937 100644 --- a/.github/workflows/workflow-compose-command.yml +++ b/.github/workflows/workflow-compose-command.yml @@ -32,7 +32,8 @@ jobs: WORKFLOW_NAME: "compose" compose_commands: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-40-compose-run_cached_commands.yml @@ -50,7 +51,10 @@ jobs: WORKFLOW_NAME: "compose" success: - needs: [configuration, compose_commands, start] + needs: + - configuration + - compose_commands + - start secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-container-multiarch.yml b/.github/workflows/workflow-container-multiarch.yml index d93cb3f1..d397bd6b 100644 --- a/.github/workflows/workflow-container-multiarch.yml +++ b/.github/workflows/workflow-container-multiarch.yml @@ -33,7 +33,8 @@ jobs: WORKFLOW_NAME: "container" security: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-10-generic-security_scan_credentials.yml @@ -44,7 +45,8 @@ jobs: scan: permissions: security-events: write - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -77,7 +79,8 @@ jobs: WORKFLOW_NAME: "container" lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-container-dockerfile_linter.yml @@ -87,7 +90,12 @@ jobs: WORKFLOW_NAME: "container" push: - needs: [configuration, lint, scan, security, start] + needs: + - configuration + - lint + - scan + - security + - start permissions: packages: write secrets: @@ -122,7 +130,9 @@ jobs: WORKFLOW_NAME: "container" multiarch: - needs: [configuration, push] + needs: + - configuration + - push permissions: packages: write secrets: @@ -139,7 +149,8 @@ jobs: WORKFLOW_NAME: "container" success: - needs: [multiarch] + needs: + - multiarch secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-cookiecutter-template.yml b/.github/workflows/workflow-cookiecutter-template.yml index 112d219b..855161c0 100644 --- a/.github/workflows/workflow-cookiecutter-template.yml +++ b/.github/workflows/workflow-cookiecutter-template.yml @@ -27,7 +27,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" security: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-10-generic-security_scan_credentials.yml @@ -36,7 +37,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" markdown_links: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-30-cookiecutter-markdown_links.yml @@ -48,7 +50,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" pre-commit_hooks: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-50-cookiecutter-test_precommit_hooks.yml @@ -61,7 +64,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" commitizen_hooks: - needs: [configuration] + needs: + - configuration if: startsWith(github.ref, 'refs/heads') secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} @@ -75,7 +79,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" commit_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-rev_range_command.yml @@ -89,7 +94,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" commit_spell_check: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-rev_range_command.yml @@ -106,7 +112,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" json_metaschema_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml @@ -119,7 +126,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" json_schema_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml @@ -159,7 +167,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" shell_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -181,7 +190,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" toml_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml @@ -194,7 +204,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" workflow_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -216,7 +227,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" yaml_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml @@ -232,7 +244,21 @@ jobs: create_release: permissions: contents: write - needs: [configuration, commit_lint, commit_spell_check, commitizen_hooks, json_metaschema_lint, json_schema_lint, markdown_links, markdown_lint, markdown_spelling, pre-commit_hooks, security, shell_lint, start, toml_lint, workflow_lint, yaml_lint] + needs: + - configuration + - commit_lint + - commit_spell_check + - commitizen_hooks + - json_metaschema_lint + - json_schema_lint + - markdown_links + - pre-commit_hooks + - security + - shell_lint + - start + - toml_lint + - workflow_lint + - yaml_lint secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-99-poetry-create_release.yml @@ -244,7 +270,9 @@ jobs: WORKFLOW_NAME: "cookiecutter" success: - needs: [create_release, configuration] + needs: + - create_release + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-mac_maker.yml b/.github/workflows/workflow-mac_maker.yml index 73b58eae..08cbab89 100644 --- a/.github/workflows/workflow-mac_maker.yml +++ b/.github/workflows/workflow-mac_maker.yml @@ -33,7 +33,8 @@ jobs: WORKFLOW_NAME: "mac_maker" mac_maker_test: - needs: [configuration] # remote_push + needs: + - configuration # remote_push secrets: REMOTE_ORIGIN: "osx-provisioner/profile-example" SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} @@ -50,7 +51,9 @@ jobs: WORKFLOW_NAME: "mac_maker" success: - needs: [mac_maker_test, start] + needs: + - mac_maker_test + - start secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-meta_tests.yml b/.github/workflows/workflow-meta_tests.yml index a018732f..89877474 100644 --- a/.github/workflows/workflow-meta_tests.yml +++ b/.github/workflows/workflow-meta_tests.yml @@ -25,14 +25,16 @@ jobs: uses: ./.github/workflows/job-00-cookiecutter-read_configuration.yml scenarios: - needs: [configuration] + needs: + - configuration uses: ./.github/workflows/job-00-generic-identify_molecule_scenarios.yml with: MOLECULE_EXCLUSION_REGEX: ${{ fromJSON(needs.configuration.outputs.COOKIECUTTER_CONFIGURATION)._GITHUB_CI_DEFAULT_MOLECULE_EXCLUDED_SCENARIOS_REGEX }} MOLECULE_SCENARIO_PATH: "{{cookiecutter.project_slug}}/ansible_role/molecule" scenarios_data_test: - needs: [scenarios] + needs: + - scenarios runs-on: ubuntu-latest steps: @@ -77,7 +79,9 @@ jobs: uses: ./.github/workflows/job-00-generic-identify_secret_exists.yml secrets_data_test: - needs: [secret_exists, secret_does_not_exist] + needs: + - secret_exists + - secret_does_not_exist runs-on: ubuntu-latest steps: @@ -197,7 +201,8 @@ jobs: WORKFLOW_NAME: "test" security_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-10-generic-security_scan_credentials.yml @@ -206,7 +211,8 @@ jobs: WORKFLOW_NAME: "test" markdown_links_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-30-cookiecutter-markdown_links.yml @@ -219,7 +225,8 @@ jobs: WORKFLOW_NAME: "test" pre-commit_hooks_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-50-cookiecutter-test_precommit_hooks.yml @@ -233,7 +240,8 @@ jobs: WORKFLOW_NAME: "test" commitizen_hooks_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-50-poetry-test_commitizen_hooks.yml @@ -247,7 +255,8 @@ jobs: WORKFLOW_NAME: "test" commit_lint_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-rev_range_command.yml @@ -262,7 +271,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" commit_spell_check_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-poetry-rev_range_command.yml @@ -280,7 +290,8 @@ jobs: WORKFLOW_NAME: "cookiecutter" shell_lint_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -303,7 +314,8 @@ jobs: WORKFLOW_NAME: "test" toml_lint_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml @@ -317,7 +329,8 @@ jobs: WORKFLOW_NAME: "test" workflow_lint_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -340,7 +353,8 @@ jobs: WORKFLOW_NAME: "test" yaml_lint_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml @@ -354,7 +368,8 @@ jobs: WORKFLOW_NAME: "test" create_release_test_failure: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-99-poetry-create_release.yml @@ -363,7 +378,22 @@ jobs: WORKFLOW_NAME: "test" success: - needs: [commit_lint_test_failure, commit_spell_check_test_failure, commitizen_hooks_test_failure, create_release_test_failure, markdown_links_test_failure, pre-commit_hooks_test_failure, scenarios_data_test, secrets_data_test, security_test_failure, send_alert_test_failure_action, send_alert_test_failure_workflow, send_notification_test_failure, send_notification_test_success, shell_lint_test_failure, toml_lint_test_failure, workflow_lint_test_failure, yaml_lint_test_failure] + needs: + - commit_lint_test_failure + - commit_spell_check_test_failure + - commitizen_hooks_test_failure + - create_release_test_failure + - markdown_links_test_failure + - pre-commit_hooks_test_failure + - scenarios_data_test + - secrets_data_test + - security_test_failure + - send_notification_test_failure + - send_notification_test_success + - shell_lint_test_failure + - toml_lint_test_failure + - workflow_lint_test_failure + - yaml_lint_test_failure runs-on: ubuntu-latest steps: - name: Notification (Local Action Test) -- Checkout Repository diff --git a/.github/workflows/workflow-npm-node_application.yml b/.github/workflows/workflow-npm-node_application.yml index 80fe016d..e503bd57 100644 --- a/.github/workflows/workflow-npm-node_application.yml +++ b/.github/workflows/workflow-npm-node_application.yml @@ -35,7 +35,8 @@ jobs: WORKFLOW_NAME: "node_npm" npm_test: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-40-npm-run_cached_command.yml @@ -47,7 +48,9 @@ jobs: WORKFLOW_NAME: "node_npm" success: - needs: [npm_test, start] + needs: + - npm_test + - start secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/.github/workflows/workflow-poetry-command.yml b/.github/workflows/workflow-poetry-command.yml index cfbff97d..17bc5aa0 100644 --- a/.github/workflows/workflow-poetry-command.yml +++ b/.github/workflows/workflow-poetry-command.yml @@ -32,7 +32,8 @@ jobs: WORKFLOW_NAME: "poetry" markdown_links: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-30-generic-markdown_links.yml @@ -43,7 +44,8 @@ jobs: WORKFLOW_NAME: "poetry" poetry_commands: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-40-poetry-run_cached_commands.yml @@ -57,7 +59,11 @@ jobs: WORKFLOW_NAME: "poetry" success: - needs: [configuration, markdown_links, poetry_commands, start] + needs: + - configuration + - markdown_links + - poetry_commands + - start secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: ./.github/workflows/job-00-generic-notification.yml diff --git a/{{cookiecutter.project_slug}}/.github/workflows/workflow-push.yml b/{{cookiecutter.project_slug}}/.github/workflows/workflow-push.yml index 321c641d..b11e5fc3 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/workflow-push.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/workflow-push.yml @@ -30,7 +30,8 @@ jobs: NOTIFICATION_MESSAGE: "Workflow has started!" security: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-10-generic-security_scan_credentials.yml@main @@ -39,7 +40,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} markdown_links: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-30-generic-markdown_links.yml@main @@ -48,7 +50,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} pre-commit_hooks: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-50-poetry-test_basic_precommit_hooks.yml@main @@ -61,7 +64,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} commit_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-rev_range_command.yml@main @@ -75,7 +79,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} commit_spell_check: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-rev_range_command.yml@main @@ -92,7 +97,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} json_schema_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml@main @@ -104,7 +110,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} markdown_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml@main @@ -116,7 +123,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} markdown_spelling: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml@main @@ -129,7 +137,8 @@ jobs: VERBOSE_NOTIFICATIONS: ${{ fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_verbose_notifications }} shell_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -152,7 +161,8 @@ jobs: {%- endraw %}{% if cookiecutter.optional_toml_linting == 'true' %}{% raw %} toml_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml@main @@ -167,7 +177,8 @@ jobs: {%- if cookiecutter.optional_workflow_linting == 'true' %}{% raw %} workflow_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} strategy: @@ -190,7 +201,8 @@ jobs: {%- endraw %}{% endif %}{% raw %} yaml_lint: - needs: [configuration] + needs: + - configuration secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml@main @@ -204,7 +216,21 @@ jobs: create_release: permissions: contents: write - needs: [commit_lint, commit_spell_check, configuration, json_schema_lint, markdown_links, markdown_lint, markdown_spelling, pre-commit_hooks, security, shell_lint, start, toml_lint, workflow_lint, yaml_lint] + needs: + - commit_lint + - commit_spell_check + - configuration + - json_schema_lint + - markdown_links + - markdown_lint + - markdown_spelling + - pre-commit_hooks + - security + - shell_lint + - start +{%- endraw %}{%- if cookiecutter.optional_toml_linting == 'true' %} - toml_lint{% endif %}{% raw %} +{%- endraw %}{%- if cookiecutter.optional_workflow_linting == 'true' %} - workflow_lint{% endif %}{% raw %} + - yaml_lint secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-99-poetry-create_release.yml@main @@ -212,7 +238,8 @@ jobs: JSON_APPENDED_CONTENT: ${{ toJSON(fromJSON(needs.configuration.outputs.JSON_FILE_DATA).ci_extra_release_content) }} success: - needs: [create_release] + needs: + - create_release secrets: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} uses: cicd-tools-org/cicd-tools/.github/workflows/job-00-generic-notification.yml@main