Skip to content

Commit a013e4a

Browse files
committed
Revert "Replace version artifact with reparse"
This reverts commit 0779a9f as the release job does not check out the code.
1 parent 0146862 commit a013e4a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/publish-release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ jobs:
8282
name: checksum
8383
path: builds/checksum.txt
8484

85+
- name: Upload the version number artifact
86+
uses: actions/upload-artifact@v3
87+
with:
88+
name: version
89+
path: version
90+
8591
release:
8692
needs: build
8793
runs-on: ubuntu-latest
@@ -103,11 +109,15 @@ jobs:
103109
name: checksum
104110
path: builds
105111

106-
- name: Get build version
107-
run: echo "version=$(php ./bin/get-release-version.php)" >> $GITHUB_ENV
112+
- name: Download the version number artifact
113+
uses: actions/download-artifact@v3
114+
with:
115+
name: version
108116

109117
- name: Prepare version information
110-
run: echo "CHECKSUM=$(cat builds/checksum.txt | cut -d ' ' -f 1)" >> $GITHUB_ENV
118+
run: |
119+
echo "CHECKSUM=$(cat builds/checksum.txt | cut -d ' ' -f 1)" >> $GITHUB_ENV
120+
echo "VERSION=$(cat version)" >> $GITHUB_ENV
111121
112122
- name: Print version information
113123
run: |

0 commit comments

Comments
 (0)