Ensure the pristine checksums are not recomputed
authorTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 10:05:36 +0000 (12:05 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 10:05:36 +0000 (12:05 +0200)
When switching between the pristine and PR checkouts we must
ensure the pristine checksums are not recomputed.

Also ignore errors (such as trying to remove a label that
is not set) when setting or removing labels.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15266)

.github/workflows/checksums.yml

index 3b28d4e23b1ae1cf508cc0f6500b099550cf090c..5f444b639b374e5995491fa49e29375e91a84619 100644 (file)
@@ -38,13 +38,14 @@ jobs:
         run: make fips-checksums
         working-directory: ./build
       - name: update checksums pristine
-        run: make update-fips-checksums
+        run: touch providers/fips.checksum.new && make update-fips-checksums
         working-directory: ./build-pristine
       - name: make diff-fips-checksums
         run: make diff-fips-checksums && echo "fips_unchanged=1" >> $GITHUB_ENV || echo "fips_changed=1" >> $GITHUB_ENV
         working-directory: ./build
       - name: set label
         if: ${{ env.fips_changed }}
+        continue-on-error: true
         uses: actions/github-script@v4
         with:
           github-token: ${{secrets.GITHUB_TOKEN}}
@@ -57,6 +58,7 @@ jobs:
             })
       - name: remove label
         if: ${{ env.fips_unchanged }}
+        continue-on-error: true
         uses: actions/github-script@v4
         with:
           github-token: ${{secrets.GITHUB_TOKEN}}