Skip to content

Commit

Permalink
chore: backport changed made in the workflow (#7255)
Browse files Browse the repository at this point in the history
Just backporting what we tested in 5.12
  • Loading branch information
gastonfournier authored Jun 4, 2024
1 parent 75529f4 commit 1a0a7c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
matrix:
version: [20.13.1-alpine]
steps:
- name: Checkout tag v${{ inputs.version }}
if: ${{ inputs.version != '' }}
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }} # tag that should be created by the caller workflow
- name: Checkout
if: ${{ inputs.version == '' }}
uses: actions/checkout@v4
- name: Setup QEmu so we can build multiplatform
uses: docker/setup-qemu-action@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-new-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ jobs:
publish-docker:
needs: build
uses: ./.github/workflows/docker_publish.yaml
secrets: inherit
with:
version: ${{ github.event.inputs.version }}

publish-npm:
needs: build
uses: ./.github/workflows/release.yaml
secrets: inherit
with:
version: ${{ github.event.inputs.version }}

Expand All @@ -132,5 +134,6 @@ jobs:
needs: publish-docker
if: ${{ github.event.inputs.update-version-function == 'true' }}
uses: ./.github/workflows/update_version_for_version_checker.yml
secrets: inherit
with:
version: ${{ github.event.inputs.version }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: v${{ inputs.version }} # tag that should be created by the caller workflow
- name: Setup to npm
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }} # tag that should be created by the caller workflow
- name: Build changelog
id: github_release
uses: metcalfc/[email protected]
Expand Down

0 comments on commit 1a0a7c1

Please sign in to comment.