Skip to content

Commit

Permalink
ci: Update usage of root level version.txt file (#17366)
Browse files Browse the repository at this point in the history
Signed-off-by: Mihail Mihov <mihail.mihov@limechain.tech>
Co-authored-by: Roger Barker <roger.barker@swirldslabs.com>
  • Loading branch information
mishomihov00 and rbarkerSL authored Jan 22, 2025
1 parent fadab3b commit 422cc1c
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/node-zxc-build-release-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,12 @@ jobs:
echo "prefix=${MAJOR_VERSION}.${MINOR_VERSION}" >>"${GITHUB_OUTPUT}"
echo "prerelease=${PRERELEASE}" >>"${GITHUB_OUTPUT}"
- name: Cache Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- name: Upload Build Version
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: version.txt
path: version.txt
key: node-build-version-${{ steps.effective-version.outputs.number }}-${{ github.sha }}
if-no-files-found: error

build-artifact:
name: Build Artifact
Expand Down Expand Up @@ -294,12 +295,10 @@ jobs:
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- name: Download Build Version
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}
name: version.txt

- name: Cache Build Artifacts
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
Expand Down Expand Up @@ -724,12 +723,10 @@ jobs:
with:
gradle-version: ${{ inputs.gradle-version }}

- name: Restore Build Version
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
- name: Download Build Version
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
fail-on-cache-miss: true
path: version.txt
key: node-build-version-${{ needs.validate.outputs.version }}-${{ github.sha }}
name: version.txt

- name: Gradle Assemble
run: ./gradlew assemble
Expand Down

0 comments on commit 422cc1c

Please sign in to comment.