Skip to content

Commit

Permalink
Update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Apr 5, 2024
1 parent 64b0fec commit 8fb09e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
- name: check out repository
uses: actions/checkout@v3
- name: get latest commit hash
run: echo "LATEST_COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: create commit hash file
run: echo $LATEST_COMMIT_HASH > latest_commit_hash.txt
run: |
echo "LATEST_COMMIT_HASH=$(git rev-parse HEAD)"
echo "Captured commit hash: $LATEST_COMMIT_HASH"
echo $LATEST_COMMIT_HASH > latest_commit_hash.txt
- name: Archive Repository with Commit Hash
run: zip -r archive_with_hash.zip . -x "*.git*" -x "*.github*"
- name: Upload to zip-archive branch
Expand Down

0 comments on commit 8fb09e3

Please sign in to comment.