Skip to content

Commit

Permalink
Fix checkout action in git detached HEAD state
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhung committed Jun 10, 2024
1 parent 4b9ca15 commit d33a42e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ jobs:
- name: Clean up Docker container
run: docker stop artifactory
- name: Send workflow status to Slack
id: slack
uses: slackapi/[email protected]
with:
payload: |
Expand All @@ -177,8 +176,10 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Update CHANGELOG and push commit
env:
ARTIFACTORY_VERSION: ${{ needs.acceptance-tests-matrix.outputs.artifactory_version }}
Expand All @@ -201,8 +202,8 @@ jobs:
echo "There is nothing to commit: Artifactory version hadn't changed."
fi
- name: Send workflow status to Slack
id: slack
uses: slackapi/[email protected]
if: success()
with:
payload: |
{
Expand Down

0 comments on commit d33a42e

Please sign in to comment.