Skip to content

Commit 20407c3

Browse files
Refactor Github Action per b/485167538 (#420)
Co-authored-by: Ben Knutson <benknutson@google.com>
1 parent f815519 commit 20407c3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Check Manifest
2323
run: |
2424
MANIFEST_VERSION=$(cat manifest-beta.json | python3 -c "import sys, json; print(json.load(sys.stdin)['version'])")
25-
TAG_VERSION=${{ github.ref_name }}
25+
TAG_VERSION=${GITHUB_REF_NAME}
2626
test "v${MANIFEST_VERSION}" = "${TAG_VERSION}"
2727
- run: bazel build ...
2828
- run: bazel test --test_output=errors ...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Check Manifest
1414
run: |
1515
MANIFEST_VERSION=$(cat manifest.json | python3 -c "import sys, json; print(json.load(sys.stdin)['version'])")
16-
TAG_VERSION=${{ github.ref_name }}
16+
TAG_VERSION=${GITHUB_REF_NAME}
1717
test "v${MANIFEST_VERSION}" = "${TAG_VERSION}"
1818
# Release artifacts were published with the beta. Fetch instead of rebuilding.
1919
- uses: robinraju/release-downloader@v1.11

0 commit comments

Comments
 (0)