We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f14ef0 commit 305b582Copy full SHA for 305b582
.github/workflows/ci.yml
@@ -44,7 +44,7 @@ jobs:
44
PLATFORM: ${{ matrix.platform }}
45
DOCKER_BUILD_PLATFORM: linux/${{ matrix.docker-platform-cpu }}
46
steps:
47
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
48
49
- name: Cache Docker layers
50
uses: actions/cache@v3
@@ -73,7 +73,7 @@ jobs:
73
bundle exec rake build:${PLATFORM} RCD_DOCKER_BUILD="$docker_build"
74
75
# 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
+ if [[ "$(git log -1 --pretty=format:"%s")" == *"[$DOCKER_BUILD_PLATFORM]"* ]]; then
77
echo "::info::Saving docker image $extra_tag"
78
docker save -o "tmp/${extra_tag}.tar" $extra_tag
79
echo "image-tarball=tmp/${extra_tag}.tar" >> $GITHUB_OUTPUT
0 commit comments