Skip to content

Commit

Permalink
fix: sanitize ref names
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Nov 4, 2024
1 parent eeb53b8 commit b2dba9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-wasm-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ jobs:
- name: Set version (PR)
if: ${{ github.event_name == 'pull_request' }}
run: |
echo REF_NAME="${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
echo SHA="${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
export REF_NAME="${{ github.event.pull_request.head.ref }}"
export SHA="${{ github.event.pull_request.head.sha }}"
echo REF_NAME="${REF_NAME/\//-}" >> $GITHUB_ENV
echo SHA="${SHA}" >> $GITHUB_ENV
- name: Set env variables (Branch/Tag)
if: ${{ github.event_name == 'push' }}
run: |
echo REF_NAME="${GITHUB_REF_NAME}" >> $GITHUB_ENV
echo REF_NAME="${GITHUB_REF_NAME/\//-}" >> $GITHUB_ENV
echo SHA="${GITHUB_SHA}" >> $GITHUB_ENV
- name: Set version
Expand Down

0 comments on commit b2dba9d

Please sign in to comment.