Skip to content

Commit

Permalink
cd: Fix switching ref in GH Actions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
itislu committed Apr 21, 2024
1 parent d9ee492 commit a8e586b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout triggering tag
uses: actions/checkout@v4

- name: Setup Git
Expand All @@ -34,9 +34,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout main branch
run: |
git checkout main
git pull
uses: actions/checkout@v4
with:
ref: main

- name: Get the version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"
Expand Down

0 comments on commit a8e586b

Please sign in to comment.