Skip to content

Commit

Permalink
use GITHUB_REF_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed May 19, 2024
1 parent f619379 commit 0c9488d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/sync-version-with-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: Sync release version with instill.tech website

on:
push:
release:
types: [published]

Expand All @@ -26,7 +25,7 @@ jobs:
run: |
# On release triggers, GITHUB_REF_NAME is the release name (e.g.
# 'v0.10.0-beta')
sed -i "s/core: \".*\"/core: \"v0.32.0-beta\"/" version.mjs
sed -i "s/core: \".*\"/core: \"${GITHUB_REF_NAME}\"/" version.mjs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 0c9488d

Please sign in to comment.