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 be18af9 commit cf7dfeb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ jobs:
steps:
- 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

- name: create latest commit hash file
run: echo $(git rev-parse HEAD) >> latest_commit_hash.txt
- name: Archive Repository with Commit Hash
run: zip -r archive_with_hash.zip . -x "*.git*" -x "*.github*"
- name: Upload Archive as Artifact
uses: actions/upload-artifact@v3
with:
name: repo-archive-with-hash
path: archive_with_hash.zip

0 comments on commit cf7dfeb

Please sign in to comment.