Skip to content

Commit

Permalink
Idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Nov 22, 2024
1 parent 29723d9 commit 6ba7012
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ jobs:
uses: actions/download-artifact@v4
with:
name: commit-hashes.txt
path: previous-run-hashes.txt
path: previous-run
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ fromJSON(steps.get_last_id.outputs.INFO).id }}
- name: Check if test run is needed
id: check_run_needed
run: |
ls -l
if [ ! -f previous-run-hashes.txt ]; then
ls -l previous-run/
if [ ! -f previous-run/commit-hashes.txt ]; then
echo "No previous run hashes, need to re-run"
echo 'INFO={"rerun": true}' >> $GITHUB_OUTPUT
elif cmp -s commit-hashes.txt previous-run-hashes.txt; then
elif cmp -s commit-hashes.txt previous-run/commit-hashes.txt; then
echo "Previous run hash same as this one, no need to re-run"
echo 'INFO={"rerun": false}' >> $GITHUB_OUTPUT
else
Expand Down

0 comments on commit 6ba7012

Please sign in to comment.