Skip to content

Commit

Permalink
INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed May 8, 2024
1 parent 189d90f commit 5707f27
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 45 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/default_release_callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/default_release_dry_run_callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven_release_callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven_release_dry_run_callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/this_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 1 addition & 17 deletions .github/workflows/this_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_release_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_renovate_auto_approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_slash_ops_command_help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_slash_ops_comment_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/this_welcome_message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions .release_github_only_auto/.releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ publish:
assets:
- path: "CHANGELOG.md"
label: "Changelog"
- path: "@semantic-release/exec"
publishCmd: "echo \"version=${nextRelease.version}\" > version.env"

success:

Expand Down
2 changes: 0 additions & 2 deletions .release_maven_auto/.releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ publish:
assets:
- path: "CHANGELOG.md"
label: "Changelog"
- path: "@semantic-release/exec"
publishCmd: "echo \"version=${nextRelease.version}\" > version.env"

success:

Expand Down
2 changes: 1 addition & 1 deletion setup-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5707f27

Please sign in to comment.