From 5707f27a482d7e3341833d614dd7de97751c8917 Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Wed, 8 May 2024 17:07:10 +0200 Subject: [PATCH] INIT --- .github/workflows/default_release_callable.yml | 8 +++----- .../default_release_dry_run_callable.yml | 6 +++--- .github/workflows/maven_release_callable.yml | 6 +++--- .../maven_release_dry_run_callable.yml | 6 +++--- .github/workflows/this_linter.yml | 2 +- .github/workflows/this_pull_request.yml | 2 +- .github/workflows/this_release.yml | 18 +----------------- .github/workflows/this_release_dry_run.yml | 2 +- .../workflows/this_renovate_auto_approve.yml | 2 +- .../workflows/this_slash_ops_command_help.yml | 2 +- .../this_slash_ops_comment_dispatch.yml | 2 +- .github/workflows/this_spelling.yml | 2 +- .github/workflows/this_stale.yml | 2 +- .github/workflows/this_welcome_message.yml | 2 +- .release_github_only_auto/.releaserc.yml | 2 -- .release_maven_auto/.releaserc.yml | 2 -- setup-workflows.sh | 2 +- 17 files changed, 23 insertions(+), 45 deletions(-) diff --git a/.github/workflows/default_release_callable.yml b/.github/workflows/default_release_callable.yml index e8e5e7f..68e6297 100644 --- a/.github/workflows/default_release_callable.yml +++ b/.github/workflows/default_release_callable.yml @@ -19,8 +19,6 @@ jobs: release: name: Release runs-on: ubuntu-latest - outputs: - version: ${{ steps.release.outputs.version }} steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.4 @@ -29,9 +27,9 @@ jobs: - name: Setup release run: | - pwd - # using stable here to be able to quickly switch to a working version in case the current stable is broken - git clone --no-tags --branch stable --single-branch https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + # using same ref as in calling workflow + git clone https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + git checkout ${{ github.action_ref }} mv .release_clone/.release_github_only_auto .release mv .release/.releaserc.yml .releaserc.yml diff --git a/.github/workflows/default_release_dry_run_callable.yml b/.github/workflows/default_release_dry_run_callable.yml index d600b67..5248a03 100644 --- a/.github/workflows/default_release_dry_run_callable.yml +++ b/.github/workflows/default_release_dry_run_callable.yml @@ -27,9 +27,9 @@ jobs: - name: Setup release run: | - pwd - # using stable here to be able to quickly switch to a working version in case the current stable is broken - git clone --no-tags --branch stable --single-branch https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + # using same ref as in calling workflow + git clone https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + git checkout ${{ github.action_ref }} mv .release_clone/.release_github_only_auto .release mv .release/.releaserc.yml .releaserc.yml diff --git a/.github/workflows/maven_release_callable.yml b/.github/workflows/maven_release_callable.yml index d918498..52e435e 100644 --- a/.github/workflows/maven_release_callable.yml +++ b/.github/workflows/maven_release_callable.yml @@ -35,9 +35,9 @@ jobs: - name: Setup release run: | - pwd - # using stable here to be able to quickly switch to a working version in case the current stable is broken - git clone --no-tags --branch stable --single-branch https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + # using same ref as in calling workflow + git clone https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + git checkout ${{ github.action_ref }} mv .release_clone/.release_maven_auto .release mv .release/.releaserc.yml .releaserc.yml diff --git a/.github/workflows/maven_release_dry_run_callable.yml b/.github/workflows/maven_release_dry_run_callable.yml index 8ae2ff8..900638f 100644 --- a/.github/workflows/maven_release_dry_run_callable.yml +++ b/.github/workflows/maven_release_dry_run_callable.yml @@ -35,9 +35,9 @@ jobs: - name: Setup release run: | - pwd - # using stable here to be able to quickly switch to a working version in case the current stable is broken - git clone --no-tags --branch stable --single-branch https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + # using same ref as in calling workflow + git clone https://github.com/Hapag-Lloyd/Workflow-Templates.git .release_clone + git checkout ${{ github.action_ref }} mv .release_clone/.release_maven_auto .release mv .release/.releaserc.yml .releaserc.yml diff --git a/.github/workflows/this_linter.yml b/.github/workflows/this_linter.yml index d544465..3ca0be6 100644 --- a/.github/workflows/this_linter.yml +++ b/.github/workflows/this_linter.yml @@ -8,5 +8,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_linter_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_linter_callable.yml secrets: inherit diff --git a/.github/workflows/this_pull_request.yml b/.github/workflows/this_pull_request.yml index df52b50..bd213bd 100644 --- a/.github/workflows/this_pull_request.yml +++ b/.github/workflows/this_pull_request.yml @@ -14,5 +14,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_pull_request_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_pull_request_callable.yml secrets: inherit diff --git a/.github/workflows/this_release.yml b/.github/workflows/this_release.yml index 88b776d..39e3bb1 100644 --- a/.github/workflows/this_release.yml +++ b/.github/workflows/this_release.yml @@ -10,21 +10,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/github_release_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_release_callable.yml secrets: inherit - - tag-stable: - runs-on: ubuntu-latest - needs: default - - steps: - - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.4 - with: - fetch-depth: 1 - ref: ${{ jobs.default.outputs.version }} - - - name: Tag stable - run: | - git tag stable --force - git push --tags --force diff --git a/.github/workflows/this_release_dry_run.yml b/.github/workflows/this_release_dry_run.yml index 58b38ed..b73f65f 100644 --- a/.github/workflows/this_release_dry_run.yml +++ b/.github/workflows/this_release_dry_run.yml @@ -10,5 +10,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/github_release_dry_run_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_release_dry_run_callable.yml secrets: inherit diff --git a/.github/workflows/this_renovate_auto_approve.yml b/.github/workflows/this_renovate_auto_approve.yml index ea19c75..f3966e7 100644 --- a/.github/workflows/this_renovate_auto_approve.yml +++ b/.github/workflows/this_renovate_auto_approve.yml @@ -7,5 +7,5 @@ on: pull_request_target jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_renovate_auto_approve_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_renovate_auto_approve_callable.yml secrets: inherit diff --git a/.github/workflows/this_slash_ops_command_help.yml b/.github/workflows/this_slash_ops_command_help.yml index c9659aa..492d2c7 100644 --- a/.github/workflows/this_slash_ops_command_help.yml +++ b/.github/workflows/this_slash_ops_command_help.yml @@ -10,5 +10,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_command_help_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_command_help_callable.yml secrets: inherit diff --git a/.github/workflows/this_slash_ops_comment_dispatch.yml b/.github/workflows/this_slash_ops_comment_dispatch.yml index dea1680..9b85d93 100644 --- a/.github/workflows/this_slash_ops_comment_dispatch.yml +++ b/.github/workflows/this_slash_ops_comment_dispatch.yml @@ -10,5 +10,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_comment_dispatch_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_slash_ops_comment_dispatch_callable.yml secrets: inherit diff --git a/.github/workflows/this_spelling.yml b/.github/workflows/this_spelling.yml index 976df8f..75e2af1 100644 --- a/.github/workflows/this_spelling.yml +++ b/.github/workflows/this_spelling.yml @@ -8,5 +8,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_spelling_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_spelling_callable.yml secrets: inherit diff --git a/.github/workflows/this_stale.yml b/.github/workflows/this_stale.yml index c325119..e438bc2 100644 --- a/.github/workflows/this_stale.yml +++ b/.github/workflows/this_stale.yml @@ -9,5 +9,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_stale_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_stale_callable.yml secrets: inherit diff --git a/.github/workflows/this_welcome_message.yml b/.github/workflows/this_welcome_message.yml index bbdeed8..875563f 100644 --- a/.github/workflows/this_welcome_message.yml +++ b/.github/workflows/this_welcome_message.yml @@ -10,5 +10,5 @@ on: jobs: default: # using stable to be able to quickly switch to a working version in case the current stable is broken - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_welcome_message_callable.yml@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/default_welcome_message_callable.yml secrets: inherit diff --git a/.release_github_only_auto/.releaserc.yml b/.release_github_only_auto/.releaserc.yml index 13ad255..a8629f7 100644 --- a/.release_github_only_auto/.releaserc.yml +++ b/.release_github_only_auto/.releaserc.yml @@ -102,8 +102,6 @@ publish: assets: - path: "CHANGELOG.md" label: "Changelog" - - path: "@semantic-release/exec" - publishCmd: "echo \"version=${nextRelease.version}\" > version.env" success: diff --git a/.release_maven_auto/.releaserc.yml b/.release_maven_auto/.releaserc.yml index 77d4260..5189bc3 100644 --- a/.release_maven_auto/.releaserc.yml +++ b/.release_maven_auto/.releaserc.yml @@ -108,8 +108,6 @@ publish: assets: - path: "CHANGELOG.md" label: "Changelog" - - path: "@semantic-release/exec" - publishCmd: "echo \"version=${nextRelease.version}\" > version.env" success: diff --git a/setup-workflows.sh b/setup-workflows.sh index 199572b..4c8bc6d 100755 --- a/setup-workflows.sh +++ b/setup-workflows.sh @@ -81,7 +81,7 @@ do cat >> "$file" <<-EOF jobs: default: - uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/$base_name@stable + uses: Hapag-Lloyd/Workflow-Templates/.github/workflows/$base_name secrets: inherit EOF