Skip to content

Commit

Permalink
Make sure we checkout back to main before exiting the task
Browse files Browse the repository at this point in the history
Otherwise the custom action will not be found.
  • Loading branch information
rafaelfranca committed Apr 23, 2024
1 parent b0dda44 commit a4d7815
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/actions/build-and-publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
using: "composite"
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.image_tag }}

Expand Down Expand Up @@ -46,4 +46,7 @@ runs:
imageTag: ${{ env.IMAGE_VERSION }}-${{ inputs.ruby_version }},${{ inputs.ruby_version }}
subFolder: images/ruby
push: always
platform: linux/amd64,linux/arm64
platform: linux/amd64,linux/arm64

- name: Checkout (GitHub)
uses: actions/checkout@v4
4 changes: 2 additions & 2 deletions .github/workflows/publish-new-image-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jobs:
packages: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build and Publish Image
uses: ./.github/actions/build-and-publish-image
with:
ruby_version: ${{ matrix.RUBY_VERSION }}
image_tag: ${{ github.ref_name }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository_owner: ${{ github.repository_owner }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-new-ruby-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
packages: write
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build and Publish Image
uses: ./.github/actions/build-and-publish-image
with:
ruby_version: ${{ matrix.RUBY_VERSION }}
image_tag: ${{ matrix.IMAGE_VERSION }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository_owner: ${{ github.repository_owner }}
2 changes: 1 addition & 1 deletion .github/workflows/release-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Publish"
uses: devcontainers/action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ruby-feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: docker/login-action@v2
with:
Expand Down

0 comments on commit a4d7815

Please sign in to comment.