Skip to content

Commit

Permalink
Ensure to fetch HEAD when building image
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Feb 1, 2024
1 parent b0dca9a commit f7fa43e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/actions/merge-ff-only/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ runs:
shell: bash
- run: git merge --ff-only origin/${{ inputs.base-ref }}
shell: bash
- run: git log -n 1 --tags
- run: echo "Latest commit:" && git log -n 1
shell: bash
- run: echo "Latest tag:" && git log -n 1 --tags
shell: bash
- run: git push
shell: bash
6 changes: 6 additions & 0 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ 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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down

0 comments on commit f7fa43e

Please sign in to comment.