Skip to content

Commit

Permalink
clone first, then get pinned commit, then checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer committed May 18, 2024
1 parent f30552c commit 9fa5a45
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
fi
echo "GIT_COMMIT_HASH=$hash" >> $GITHUB_ENV
- name: Checkout current repository and checkout pinned commit
uses: actions/checkout@v4

- name: Get pinned commit from hyprpm.toml file
run: |
hash=$GIT_COMMIT_HASH
Expand All @@ -45,10 +48,9 @@ jobs:
fi
echo "PINNED_COMMIT=$commit" >> $GITHUB_ENV
- name: Checkout current repository and checkout pinned commit
uses: actions/checkout@v4
with:
ref: $PINNED_COMMIT
- name: Checkout pinned commit
run: |
git checkout $PINNED_COMMIT
- name: Build current repository
run: |
Expand Down

0 comments on commit 9fa5a45

Please sign in to comment.