@@ -30,25 +30,33 @@ jobs:
3030 name : commit-hashes.txt
3131 path : commit-hashes.txt
3232 # TODO: This one is wrong, need to use the REST API to get the most recently uploaded artifact id.
33- - name : Get last run id
34- id : get_last_id
35- run : |
36- echo "last_run_id=$((${{ github.run_id }} - 1))" >> $GITHUB_OUTPUT
37- - name : Download last run commit hashes
38- continue-on-error : true
39- uses : actions/download-artifact@v4
33+ - name : Setup python
34+ uses : actions/setup-python@v5
4035 with :
41- name : commit-hashes.txt
42- path : previous-run-hashes.txt
43- github-token : ${{ secrets.GITHUB_TOKEN }}
44- # Previous run
45- run-id : ${{ job.get_last_id.last_run_id }}
46- - name : Check if run needed
36+ python-version : 3.12
37+ - name : Checkout ourselves
38+ uses : actions/checkout@v4
39+ - name : Stuff
40+ id : get_last_id
4741 run : |
48- if [ ! -f previous-run-hashes.txt ]; then
49- echo "No previous run hashes, need to re-run"
50- elif cmp -s commit-hashes.txt previous-run-hashes.txt; then
51- echo "Previous run hash same as this one, no need to re-run"
52- else
53- echo "Previous run hash different, need to re-run"
54- fi
42+ pip install requests
43+ python get.py ${{ secrets.GITHUB_TOKEN }}
44+ # echo "last_run_id=$((${{ github.run_id }} - 1))" >> $GITHUB_OUTPUT
45+ # - name: Download last run commit hashes
46+ # continue-on-error: true
47+ # uses: actions/download-artifact@v4
48+ # with:
49+ # name: commit-hashes.txt
50+ # path: previous-run-hashes.txt
51+ # github-token: ${{ secrets.GITHUB_TOKEN }}
52+ # # Previous run
53+ # run-id: ${{ job.get_last_id.last_run_id }}
54+ # - name: Check if run needed
55+ # run: |
56+ # if [ ! -f previous-run-hashes.txt ]; then
57+ # echo "No previous run hashes, need to re-run"
58+ # elif cmp -s commit-hashes.txt previous-run-hashes.txt; then
59+ # echo "Previous run hash same as this one, no need to re-run"
60+ # else
61+ # echo "Previous run hash different, need to re-run"
62+ # fi
0 commit comments