Skip to content

Commit

Permalink
Merge pull request #5542 from solidusio/elia/gh-actions-fix
Browse files Browse the repository at this point in the history
Setup the pipeline context after bundler has run
  • Loading branch information
elia authored Dec 6, 2023
2 parents c4115d7 + a1df38e commit ae6e2f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prepare_post_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'release:generate')
steps:
- uses: actions/checkout@v3
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
with:
last_minor: ${{ contains(github.event.pull_request.labels.*.name, 'release:generate-last_minor') }}
- uses: ruby/setup-ruby@v1
env:
BUNDLE_ONLY: "release"
with:
ruby-version: "3.2"
bundler-cache: true
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
with:
last_minor: ${{ contains(github.event.pull_request.labels.*.name, 'release:generate-last_minor') }}
- name: "Bump to the development version"
run: |
bin/release/bump-version \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
with:
last_minor: ${{ inputs.last_minor }}
- uses: ruby/setup-ruby@v1
env:
BUNDLE_ONLY: "release"
with:
ruby-version: "3.2"
bundler-cache: true
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
with:
last_minor: ${{ inputs.last_minor }}
- name: "Bump version"
run: bin/release/bump-version ${{ steps.pipeline_context.outputs.candidate_version }}
- name: "Bump docker image version"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
!contains(github.event.pull_request.labels.*.name, 'changelog:skip')
steps:
- uses: actions/checkout@v3
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
- uses: ruby/setup-ruby@v1
env:
BUNDLE_ONLY: "release"
with:
ruby-version: "3.2"
bundler-cache: true
- id: pipeline_context
uses: ./.github/actions/extract_pipeline_context
- name: "Save Release Draft"
run: |
bin/release/update-release-draft \
Expand Down

0 comments on commit ae6e2f3

Please sign in to comment.