Skip to content

Commit

Permalink
Merge pull request #304 from amplication/fix/checkout-publish-on-comm…
Browse files Browse the repository at this point in the history
…ent-to-head

fix(workflows): checkout to head on commit publish
  • Loading branch information
levivannoort authored Nov 29, 2023
2 parents 41f1a61 + 3f7c389 commit af9a67d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-on-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
publish:
name: Publish beta version
runs-on: ubuntu-latest
needs: [get-affected-plugins, get-last-commit]
needs: [get-affected-plugins, get-last-commit, get-refs]
if: ${{ needs.get-affected-plugins.outputs.affected-plugins != '[]' && needs.get-affected-plugins.outputs.affected-plugins != '' }}
strategy:
matrix:
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.get-last-commit.outputs.last-commit-short-sha }}
ref: ${{ needs.get-refs.outputs.head }}

- name: Setup Node
uses: actions/setup-node@v3
Expand Down

0 comments on commit af9a67d

Please sign in to comment.