Skip to content

Commit

Permalink
Expicitely fetch and checkout latest HEAD of release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Feb 1, 2024
1 parent f7fa43e commit 59de8b1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
# Make sure we actually fetch the HEAD with the previously
# merged commits from main, instead of the latest commit of
# the release branch at the time this workflow has been
# started (before merge)
ref: HEAD

# Make sure we actually checkout the HEAD with the previously
# merged commits from main, instead of the latest commit of the
# release branch at the time this workflow has been started
# (before merge)
- name: Checkout latest commit
run: |
git fetch --prune --tags
git checkout HEAD
git log -n 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down

0 comments on commit 59de8b1

Please sign in to comment.