Skip to content

Commit

Permalink
fix: checkout the latest release tag for testing, #134
Browse files Browse the repository at this point in the history
  • Loading branch information
ciatph committed Jan 28, 2025
1 parent 9e4fd8a commit eff66e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/scheduled-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- name: Fetch and check out latest tag
run: |
git fetch --tags
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Checking out latest tag: $LATEST_TAG"
git checkout $LATEST_TAG
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
- name: Use NodeJS v16.14.2
uses: actions/setup-node@v3
Expand Down

0 comments on commit eff66e0

Please sign in to comment.