Skip to content

Commit db8e6fb

Browse files
committed
CI: try using a valid env var name
They aren't allowed to have dashes. Maybe that's why GitHub Actions is skipping these two build steps?
1 parent 2234669 commit db8e6fb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ fi
2828

2929
# Determine if cache needs to be re-generated
3030
if [ "$cache_modified_post" -gt "$cache_modified_pre" ]; then
31-
echo "update-cache=true" >> $GITHUB_ENV
31+
echo "cacheChanged=true" >> $GITHUB_ENV
3232
else
33-
echo "update-cache=false" >> $GITHUB_ENV
33+
echo "cacheChanged=false" >> $GITHUB_ENV
3434
fi
3535

3636
# NB: This script exits 0, but saves the exit code for a later build step.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ jobs:
4646
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
4747

4848
- name: Delete the melting-pot cache
49-
if: env.update-cache == 'true'
49+
if: env.cacheChanged == 'true'
5050
id: delete-cache
5151
run: |
5252
gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-cache
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
5555

5656
- name: Save the melting-pot cache
57-
if: env.update-cache == 'true'
57+
if: env.cacheChanged == 'true'
5858
id: save-cache
5959
uses: actions/cache/save@v3
6060
with:

0 commit comments

Comments
 (0)