Skip to content

Commit

Permalink
chore: fixup VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
toanju committed Oct 7, 2024
1 parent 10b2e62 commit f2ce47d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,17 @@ jobs:
- uses: ./.github/actions/setup
- name: set VERSION=${{ needs.version.outputs.version }}
run: |
bin/garden-version "${{ needs.version.outputs.version }}" | tee VERSION
git update-index --assume-unchanged VERSION
VERSION_FILE=""
if [ -f "VERSION" ]; then
VERSION_FILE="VERSION"
elif [ -f "gardenlinux/VERSION" ]; then
VERSION_FILE="gardenlinux/VERSION"
else
echo "Error: VERSION file does not exist"
exit 1
fi
bin/garden-version "${{ needs.version.outputs.version }}" | tee ${VERSION_FILE}
git update-index --assume-unchanged ${VERSION_FILE}
- name: build certificates
if: ${{ ! inputs.use_kms }}
run: ./cert/build
Expand Down Expand Up @@ -201,8 +210,17 @@ jobs:
arch: "${{ matrix.arch }}"
- name: set VERSION=${{ needs.version.outputs.version }}
run: |
bin/garden-version "${{ needs.version.outputs.version }}" | tee VERSION
git update-index --assume-unchanged VERSION
VERSION_FILE=""
if [ -f "VERSION" ]; then
VERSION_FILE="VERSION"
elif [ -f "gardenlinux/VERSION" ]; then
VERSION_FILE="gardenlinux/VERSION"
else
echo "Error: VERSION file does not exist"
exit 1
fi
bin/garden-version "${{ needs.version.outputs.version }}" | tee ${VERSION_FILE}
git update-index --assume-unchanged ${VERSION_FILE}
- name: load cert cache
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # pin@v3
with:
Expand Down

0 comments on commit f2ce47d

Please sign in to comment.