Skip to content

Commit

Permalink
doing a git checkout main in publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-smith committed Oct 31, 2021
1 parent d0bcc91 commit 04c605e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ jobs:
- name: Validate tag on main
shell: pwsh
run: |
git checkout main
$mainsha = $(git show-ref refs/heads/main --hash)
$tagsha = $(git show-ref ${{ github.ref }} --hash)
if ($mainsha -ne $tagsha) {
Write-Error "tag must match HEAD of main`ntag ${{ github.ref }}: $tagsha`nmain: $mainsha"
Write-Error "tag must match HEAD of main`n${{ github.ref }}: $tagsha`nrefs/heads/main: $mainsha"
exit 1
}
- name: Setup .NET
Expand Down

0 comments on commit 04c605e

Please sign in to comment.