Skip to content

Commit 305b582

Browse files
committed
[linux/arm64] [linux/amd64] Use correct ref to commit message
1 parent 6f14ef0 commit 305b582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
PLATFORM: ${{ matrix.platform }}
4545
DOCKER_BUILD_PLATFORM: linux/${{ matrix.docker-platform-cpu }}
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
4848

4949
- name: Cache Docker layers
5050
uses: actions/cache@v3
@@ -73,7 +73,7 @@ jobs:
7373
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
7474
7575
# Save the image if the commit message contains the docker platform name (e.g. "[linux/arm64] ...")
76-
if [[ "${{ github.event.head_commit.message }}" == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
76+
if [[ "$(git log -1 --pretty=format:"%s")" == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
7777
echo "::info::Saving docker image $extra_tag"
7878
docker save -o "tmp/${extra_tag}.tar" $extra_tag
7979
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)