Skip to content

Commit

Permalink
frontend-CI: change ref variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
defgsus committed Nov 13, 2023
1 parent 2aabc0e commit 8cfbd47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
node-version: 17.9.1
- name: switch to frontend branch
run: |
echo switching to branch ${GITHUB_HEAD_REF}-frontend
git checkout ${GITHUB_HEAD_REF}-frontend || git checkout -b ${GITHUB_HEAD_REF}-frontend
git merge ${GITHUB_HEAD_REF}-frontend
echo switching to branch ${GITHUB_REF_NAME}-frontend
git checkout ${GITHUB_REF_NAME}-frontend || git checkout -b ${GITHUB_REF_NAME}-frontend
git merge ${GITHUB_REF_NAME}-frontend
- name: build frontend
run: |
cd frontend
Expand All @@ -38,4 +38,4 @@ jobs:
git commit -m"build frontend"
- name: push changes
run: |
git push -u origin ${GITHUB_HEAD_REF}-frontend || (git pull --rebase --no-edit && git push -u origin ${GITHUB_HEAD_REF}-frontend)
git push -u origin ${GITHUB_REF_NAME}-frontend || (git pull --rebase --no-edit && git push -u origin ${GITHUB_REF_NAME}-frontend)

0 comments on commit 8cfbd47

Please sign in to comment.