From 4815189d7544ece1cf03dcc93a322689d552bdb7 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:00:02 +0200 Subject: [PATCH 01/11] feat: refactoring to reusable workflows Signed-off-by: Martin Buchleitner --- .github/workflows/changelog.yml | 15 ++++ .github/workflows/pr-validation.yml | 15 ++++ .../changelog-automation.yml | 1 + workflows/pr-validation.yml | 71 +++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 .github/workflows/changelog.yml create mode 100644 .github/workflows/pr-validation.yml rename {.github/workflows => workflows}/changelog-automation.yml (99%) create mode 100644 workflows/pr-validation.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..e1eecae --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,15 @@ +--- +name: Infralovers Changelog Automation + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + +jobs: + changelog-automation: + uses: ./workflows/changelog-automation.yml + secrets: inherit + \ No newline at end of file diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 0000000..b0726f4 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,15 @@ +name: 'Validate PR title' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + + +jobs: + changelog-automation: + uses: ./workflows/pre-validation.yml + secrets: inherit + \ No newline at end of file diff --git a/.github/workflows/changelog-automation.yml b/workflows/changelog-automation.yml similarity index 99% rename from .github/workflows/changelog-automation.yml rename to workflows/changelog-automation.yml index 955c12a..839d41e 100644 --- a/.github/workflows/changelog-automation.yml +++ b/workflows/changelog-automation.yml @@ -1,3 +1,4 @@ +--- name: Infralovers Changelog Automation on: diff --git a/workflows/pr-validation.yml b/workflows/pr-validation.yml new file mode 100644 index 0000000..fcfff55 --- /dev/null +++ b/workflows/pr-validation.yml @@ -0,0 +1,71 @@ +--- +name: 'Validate PR title' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + + workflow_call: + +permissions: + pull-requests: write + statuses: write + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + # Please look up the latest version from + # https://github.com/amannn/action-semantic-pull-request/releases + - uses: amannn/action-semantic-pull-request@v5.4.0 + env: + GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} + with: + # Configure which types are allowed. + # Default: https://github.com/commitizen/conventional-commit-types + # + # The following terminology helps to understand the configuration options: + # + # feat(ui): Add `Button` component + # ^ ^ ^ + # | | |__ Subject + # | |_______ Scope + # |____________ Type + types: | + fix + feat + docs + ci + chore + # Configure which scopes are allowed (newline-delimited). + # These are regex patterns auto-wrapped in `^ $`. + # scopes: | + # EXAMPLE-\d+ + # Configure that a scope must always be provided. + requireScope: false + # Configure additional validation for the subject based on a regex. + # This example ensures the subject doesn't start with an uppercase character. + subjectPattern: ^[A-Z].+$ + # If `subjectPattern` is configured, you can use this property to override + # the default error message that is shown when the pattern doesn't match. + # The variables `subject` and `title` can be used within the message. + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + didn't match the configured pattern. Please ensure that the subject + starts with an uppercase character. + # For work-in-progress PRs you can typically use draft pull requests + # from Github. However, private repositories on the free plan don't have + # this option and therefore this action allows you to opt-in to using the + # special "[WIP]" prefix to indicate this state. This will avoid the + # validation of the PR title and the pull request checks remain pending. + # Note that a second check will be reported if this is enabled. + wip: true + # When using "Squash and merge" on a PR with only one commit, GitHub + # will suggest using that commit message instead of the PR title for the + # merge commit, and it's easy to commit this by mistake. Enable this option + # to also validate the commit message for one commit PRs. + validateSingleCommit: false \ No newline at end of file From 9b799f7e41ff064077d4ec49e75c0399e132356f Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:01:33 +0200 Subject: [PATCH 02/11] fix: specify version on workflow call Signed-off-by: Martin Buchleitner --- .github/workflows/changelog.yml | 2 +- .github/workflows/pr-validation.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index e1eecae..c8d853e 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -10,6 +10,6 @@ on: jobs: changelog-automation: - uses: ./workflows/changelog-automation.yml + uses: ./workflows/changelog-automation.yml@main secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index b0726f4..645a2e9 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -10,6 +10,6 @@ on: jobs: changelog-automation: - uses: ./workflows/pre-validation.yml + uses: ./workflows/pre-validation.yml@main secrets: inherit \ No newline at end of file From 2c77242662d86cf8d39f2ae1d9928e26b45dfed7 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:03:58 +0200 Subject: [PATCH 03/11] fix: workflow location Signed-off-by: Martin Buchleitner --- .../workflows}/changelog-automation.yml | 0 .github/workflows/changelog.yml | 2 +- .github/workflows/pr-valid.yml | 15 ++++ .github/workflows/pr-validation.yml | 64 +++++++++++++++-- workflows/pr-validation.yml | 71 ------------------- 5 files changed, 76 insertions(+), 76 deletions(-) rename {workflows => .github/workflows}/changelog-automation.yml (100%) create mode 100644 .github/workflows/pr-valid.yml delete mode 100644 workflows/pr-validation.yml diff --git a/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml similarity index 100% rename from workflows/changelog-automation.yml rename to .github/workflows/changelog-automation.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index c8d853e..d4e66ad 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -10,6 +10,6 @@ on: jobs: changelog-automation: - uses: ./workflows/changelog-automation.yml@main + uses: ./.github/workflows/changelog-automation.yml secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pr-valid.yml b/.github/workflows/pr-valid.yml new file mode 100644 index 0000000..a25251e --- /dev/null +++ b/.github/workflows/pr-valid.yml @@ -0,0 +1,15 @@ +name: 'Validate PR title' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + + +jobs: + changelog-automation: + uses: ./.github/workflows/pre-validation.yml + secrets: inherit + \ No newline at end of file diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 645a2e9..fcfff55 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,3 +1,4 @@ +--- name: 'Validate PR title' on: @@ -7,9 +8,64 @@ on: - edited - synchronize + workflow_call: + +permissions: + pull-requests: write + statuses: write jobs: - changelog-automation: - uses: ./workflows/pre-validation.yml@main - secrets: inherit - \ No newline at end of file + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + # Please look up the latest version from + # https://github.com/amannn/action-semantic-pull-request/releases + - uses: amannn/action-semantic-pull-request@v5.4.0 + env: + GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} + with: + # Configure which types are allowed. + # Default: https://github.com/commitizen/conventional-commit-types + # + # The following terminology helps to understand the configuration options: + # + # feat(ui): Add `Button` component + # ^ ^ ^ + # | | |__ Subject + # | |_______ Scope + # |____________ Type + types: | + fix + feat + docs + ci + chore + # Configure which scopes are allowed (newline-delimited). + # These are regex patterns auto-wrapped in `^ $`. + # scopes: | + # EXAMPLE-\d+ + # Configure that a scope must always be provided. + requireScope: false + # Configure additional validation for the subject based on a regex. + # This example ensures the subject doesn't start with an uppercase character. + subjectPattern: ^[A-Z].+$ + # If `subjectPattern` is configured, you can use this property to override + # the default error message that is shown when the pattern doesn't match. + # The variables `subject` and `title` can be used within the message. + subjectPatternError: | + The subject "{subject}" found in the pull request title "{title}" + didn't match the configured pattern. Please ensure that the subject + starts with an uppercase character. + # For work-in-progress PRs you can typically use draft pull requests + # from Github. However, private repositories on the free plan don't have + # this option and therefore this action allows you to opt-in to using the + # special "[WIP]" prefix to indicate this state. This will avoid the + # validation of the PR title and the pull request checks remain pending. + # Note that a second check will be reported if this is enabled. + wip: true + # When using "Squash and merge" on a PR with only one commit, GitHub + # will suggest using that commit message instead of the PR title for the + # merge commit, and it's easy to commit this by mistake. Enable this option + # to also validate the commit message for one commit PRs. + validateSingleCommit: false \ No newline at end of file diff --git a/workflows/pr-validation.yml b/workflows/pr-validation.yml deleted file mode 100644 index fcfff55..0000000 --- a/workflows/pr-validation.yml +++ /dev/null @@ -1,71 +0,0 @@ ---- -name: 'Validate PR title' - -on: - pull_request_target: - types: - - opened - - edited - - synchronize - - workflow_call: - -permissions: - pull-requests: write - statuses: write - -jobs: - main: - name: Validate PR title - runs-on: ubuntu-latest - steps: - # Please look up the latest version from - # https://github.com/amannn/action-semantic-pull-request/releases - - uses: amannn/action-semantic-pull-request@v5.4.0 - env: - GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} - with: - # Configure which types are allowed. - # Default: https://github.com/commitizen/conventional-commit-types - # - # The following terminology helps to understand the configuration options: - # - # feat(ui): Add `Button` component - # ^ ^ ^ - # | | |__ Subject - # | |_______ Scope - # |____________ Type - types: | - fix - feat - docs - ci - chore - # Configure which scopes are allowed (newline-delimited). - # These are regex patterns auto-wrapped in `^ $`. - # scopes: | - # EXAMPLE-\d+ - # Configure that a scope must always be provided. - requireScope: false - # Configure additional validation for the subject based on a regex. - # This example ensures the subject doesn't start with an uppercase character. - subjectPattern: ^[A-Z].+$ - # If `subjectPattern` is configured, you can use this property to override - # the default error message that is shown when the pattern doesn't match. - # The variables `subject` and `title` can be used within the message. - subjectPatternError: | - The subject "{subject}" found in the pull request title "{title}" - didn't match the configured pattern. Please ensure that the subject - starts with an uppercase character. - # For work-in-progress PRs you can typically use draft pull requests - # from Github. However, private repositories on the free plan don't have - # this option and therefore this action allows you to opt-in to using the - # special "[WIP]" prefix to indicate this state. This will avoid the - # validation of the PR title and the pull request checks remain pending. - # Note that a second check will be reported if this is enabled. - wip: true - # When using "Squash and merge" on a PR with only one commit, GitHub - # will suggest using that commit message instead of the PR title for the - # merge commit, and it's easy to commit this by mistake. Enable this option - # to also validate the commit message for one commit PRs. - validateSingleCommit: false \ No newline at end of file From e2b1e19cf23e6b8f29b3794b44c520dec08402f8 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:05:03 +0200 Subject: [PATCH 04/11] fix: correct on events on templates Signed-off-by: Martin Buchleitner --- .github/workflows/changelog-automation.yml | 8 ++++---- .github/workflows/pr-validation.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml index 839d41e..8a84322 100644 --- a/.github/workflows/changelog-automation.yml +++ b/.github/workflows/changelog-automation.yml @@ -2,10 +2,10 @@ name: Infralovers Changelog Automation on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + # push: + # branches: [ "main" ] + # pull_request: + # branches: [ "main" ] workflow_call: diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index fcfff55..3afbcc6 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -2,11 +2,11 @@ name: 'Validate PR title' on: - pull_request_target: - types: - - opened - - edited - - synchronize + # pull_request_target: + # types: + # - opened + # - edited + # - synchronize workflow_call: From 324b5544a346947431a30f3e89317ff9633489e7 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:05:52 +0200 Subject: [PATCH 05/11] fix: pre-commit stuff Signed-off-by: Martin Buchleitner --- .github/workflows/changelog.yml | 1 - .github/workflows/pr-valid.yml | 1 - .github/workflows/pr-validation.yml | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index d4e66ad..f519ed8 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -12,4 +12,3 @@ jobs: changelog-automation: uses: ./.github/workflows/changelog-automation.yml secrets: inherit - \ No newline at end of file diff --git a/.github/workflows/pr-valid.yml b/.github/workflows/pr-valid.yml index a25251e..d68f904 100644 --- a/.github/workflows/pr-valid.yml +++ b/.github/workflows/pr-valid.yml @@ -12,4 +12,3 @@ jobs: changelog-automation: uses: ./.github/workflows/pre-validation.yml secrets: inherit - \ No newline at end of file diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 3afbcc6..4d5e2ee 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -68,4 +68,4 @@ jobs: # will suggest using that commit message instead of the PR title for the # merge commit, and it's easy to commit this by mistake. Enable this option # to also validate the commit message for one commit PRs. - validateSingleCommit: false \ No newline at end of file + validateSingleCommit: false From edd26e8c15e59550ebcfd8390bd69e32091c9131 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:07:03 +0200 Subject: [PATCH 06/11] fix: naming conventions Signed-off-by: Martin Buchleitner --- .github/workflows/pr-valid.yml | 4 +++- .github/workflows/pr-validation.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-valid.yml b/.github/workflows/pr-valid.yml index d68f904..5db6db6 100644 --- a/.github/workflows/pr-valid.yml +++ b/.github/workflows/pr-valid.yml @@ -1,4 +1,6 @@ -name: 'Validate PR title' +--- + +name: 'Validate PR' on: pull_request_target: diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 4d5e2ee..d7c22db 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -1,5 +1,5 @@ --- -name: 'Validate PR title' +name: 'Validate PR template' on: # pull_request_target: From c480b24da1f004cc18e2d4e17221d28f92e3e4ae Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:08:32 +0200 Subject: [PATCH 07/11] fix: upgrade version Signed-off-by: Martin Buchleitner --- .github/workflows/changelog-automation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml index 8a84322..d8606a3 100644 --- a/.github/workflows/changelog-automation.yml +++ b/.github/workflows/changelog-automation.yml @@ -1,5 +1,5 @@ --- -name: Infralovers Changelog Automation +name: "Infralovers Changelog Automation template" on: # push: @@ -20,7 +20,7 @@ jobs: - name: Check pre-commit presence id: precommit_exists - uses: andstor/file-existence-action@v1 + uses: andstor/file-existence-action@v3 with: files: ".pre-commit-config.yaml" From b7322ffbe691c11da224b80466508d645ff83a0f Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:10:13 +0200 Subject: [PATCH 08/11] fix: define python version Signed-off-by: Martin Buchleitner --- .github/workflows/changelog-automation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml index d8606a3..7728b3b 100644 --- a/.github/workflows/changelog-automation.yml +++ b/.github/workflows/changelog-automation.yml @@ -26,6 +26,8 @@ jobs: - uses: actions/setup-python@v5 if: steps.precommit_exists.outputs.files_exists == 'true' + with: + python-version: 3.10 - uses: pre-commit/action@v3.0.1 if: steps.precommit_exists.outputs.files_exists == 'true' From f70a0b615c1bf4a776a8a608e457fc7e66fc0ea0 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:17:34 +0200 Subject: [PATCH 09/11] fix: refactor/split flows Signed-off-by: Martin Buchleitner --- .github/workflows/changelog-automation.yml | 53 +--------------------- .github/workflows/pre-commit.yml | 40 ++++++++++++++++ .github/workflows/release.yml | 27 +++++++++++ 3 files changed, 69 insertions(+), 51 deletions(-) create mode 100644 .github/workflows/pre-commit.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml index 7728b3b..a7a84b4 100644 --- a/.github/workflows/changelog-automation.yml +++ b/.github/workflows/changelog-automation.yml @@ -12,57 +12,8 @@ on: jobs: prebuild: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.semrel.outputs.version }} - steps: - - uses: actions/checkout@v4 - - - name: Check pre-commit presence - id: precommit_exists - uses: andstor/file-existence-action@v3 - with: - files: ".pre-commit-config.yaml" - - - uses: actions/setup-python@v5 - if: steps.precommit_exists.outputs.files_exists == 'true' - with: - python-version: 3.10 - - - uses: pre-commit/action@v3.0.1 - if: steps.precommit_exists.outputs.files_exists == 'true' - - - uses: go-semantic-release/action@v1 - if: github.event_name != 'pull_request' - id: semrel - with: - github-token: ${{ secrets.BOT_ACCESS_TOKEN }} - prepend: true - dry: true + uses: ./.github/workflows/pre-commit.yml release: needs: [ prebuild ] - if: github.event_name != 'pull_request' - runs-on: ubuntu-latest - steps: - - - uses: actions/checkout@v4 - with: - token: ${{ secrets.BOT_ACCESS_TOKEN }} # needed for push to protected branch - - - uses: go-semantic-release/action@v1 - if: needs.prebuild.outputs.version != '' - id: generate_changelog - with: - github-token: ${{ secrets.BOT_ACCESS_TOKEN }} - prepend: true - changelog-file: CHANGELOG.md - - - name: Update changelog - uses: stefanzweifel/git-auto-commit-action@v5 - if: steps.generate_changelog.outputs.version != '' - with: - commit_user_name: infralovers-machine - commit_user_email: il-machine@infralovers.com - commit_message: 'chore(ci): commit changes from go-semantic-release' - file_pattern: CHANGELOG.md + uses: ./.github/workflows/release.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..c33c3f9 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,40 @@ +--- + +name: Pre-Commit validation + +on: + workflow_call: + outputs: + version: + description: 'The version of the release' + value: ${{ jobs.pre-commit.outputs.version }} + +jobs: + pre-commit: + runs-on: ubuntu-latest + outputs: + version: ${{ steps.semrel.outputs.version }} + steps: + - uses: actions/checkout@v4 + + - name: Check pre-commit presence + id: precommit_exists + uses: andstor/file-existence-action@v3 + with: + files: ".pre-commit-config.yaml" + + - uses: actions/setup-python@v5 + if: steps.precommit_exists.outputs.files_exists == 'true' + with: + python-version: '3.10' + + - uses: pre-commit/action@v3.0.1 + if: steps.precommit_exists.outputs.files_exists == 'true' + + - uses: go-semantic-release/action@v1 + if: github.event_name != 'pull_request' + id: semrel + with: + github-token: ${{ secrets.BOT_ACCESS_TOKEN }} + prepend: true + dry: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4c76e46 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +--- + +name: Release Automation template" + +on: + workflow_call: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: go-semantic-release/action@v1 + if: github.event_name != 'pull_request' + id: generate_changelog + with: + semantic_version: 23.0.2 + extra_plugins: | + @semantic-release/changelog@6.0.3 + @semantic-release/git@10.0.1 + conventional-changelog-conventionalcommits@7.0.2 + github-token: ${{ secrets.BOT_ACCESS_TOKEN }} + prepend: true + changelog-file: CHANGELOG.md From cfef11468b934de996d1d8e10a119a70bcc872c7 Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:20:30 +0200 Subject: [PATCH 10/11] pr validation Signed-off-by: Martin Buchleitner --- .github/workflows/pr-valid.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-valid.yml b/.github/workflows/pr-valid.yml index 5db6db6..9ebf501 100644 --- a/.github/workflows/pr-valid.yml +++ b/.github/workflows/pr-valid.yml @@ -8,6 +8,8 @@ on: - opened - edited - synchronize + - reopened + - assigned jobs: From eefc94ced4714887567fbb191d095e6e753e9cfd Mon Sep 17 00:00:00 2001 From: Martin Buchleitner Date: Thu, 18 Apr 2024 08:23:53 +0200 Subject: [PATCH 11/11] fix: adding secrets ineheritance Signed-off-by: Martin Buchleitner --- .github/workflows/changelog-automation.yml | 2 ++ .github/workflows/changelog.yml | 1 - .github/workflows/pre-commit.yml | 3 +++ .github/workflows/release.yml | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changelog-automation.yml b/.github/workflows/changelog-automation.yml index a7a84b4..ff5601f 100644 --- a/.github/workflows/changelog-automation.yml +++ b/.github/workflows/changelog-automation.yml @@ -13,7 +13,9 @@ on: jobs: prebuild: uses: ./.github/workflows/pre-commit.yml + secrets: inherit release: needs: [ prebuild ] uses: ./.github/workflows/release.yml + secrets: inherit diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index f519ed8..bc45905 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,7 +7,6 @@ on: pull_request: branches: [ "main" ] - jobs: changelog-automation: uses: ./.github/workflows/changelog-automation.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c33c3f9..23d242d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -3,6 +3,9 @@ name: Pre-Commit validation on: + # pull_request: + # branches: + # - main workflow_call: outputs: version: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c76e46..a5e12e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,11 @@ name: Release Automation template" on: workflow_call: + # workflow_dispatch: + # push: + # branches: + # - main + jobs: release: runs-on: ubuntu-latest