Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
feat: update location of last commit file
Browse files Browse the repository at this point in the history
  • Loading branch information
ASuciuX committed Dec 5, 2023
1 parent 53b4948 commit ff272b3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,30 @@ jobs:
path: ./mutation-testing/packages-output
key: mutants-stable-develop

- name: Print old commit hash (before creating)
run: cat ./mutation-testing/last_commit_hash.txt

- name: Create file with current commit hash if it doesn't exist
run: |
if [ ! -f last_commit_hash.txt ]; then
echo "${{ github.sha }}" > last_commit_hash.txt
fi
working-directory: ./mutation-testing
working-directory: ./mutation-testing/packages-output

- name: Print old commit hash
run: cat ./mutation-testing/last_commit_hash.txt
run: cat ./mutation-testing/packages-output/last_commit_hash.txt

# - name: Run the mutation testing on the differences
# run: |
# if [ -f last_commit_hash.txt ]; then
# if [ -f ../packages-output/last_commit_hash.txt ]; then
# ./git-diff.sh
# fi
# working-directory: ./mutation-testing/scripts

- name: Re-write the old commit hash with the current one
run: |
echo "${{ github.sha }}" > last_commit_hash.txt
working-directory: ./mutation-testing
working-directory: ./mutation-testing/packages-output

- name: Print new commit hash
run: cat ./mutation-testing/last_commit_hash.txt
run: cat ./mutation-testing/packages-output/last_commit_hash.txt

- name: Delete Previous Cache
if: ${{ steps.cache-restore.outputs.cache-hit }}
Expand Down

0 comments on commit ff272b3

Please sign in to comment.