Set the severity: fips change label if fips checksum changed
authorTomas Mraz <tomas@openssl.org>
Tue, 11 May 2021 16:15:32 +0000 (18:15 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 08:24:33 +0000 (10:24 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15229)

.github/workflows/checksums.yml

index d22e38a5e95c52af4b727ad11e3750b7a5b2f840..ccbae1e553ab129c31731242b8dadddb8200e2c0 100644 (file)
@@ -41,16 +41,17 @@ jobs:
         run: make update-fips-checksums
         working-directory: ./build-pristine
       - name: make diff-fips-checksums
-        run: make diff-fips-checksums
+        run: make diff-fips-checksums || echo "fips_changed=1" >> $GITHUB_ENV
         working-directory: ./build
-
-#      - uses: actions/github-script@v4
-#        with:
-#          github-token: ${{secrets.GITHUB_TOKEN}}
-#          script: |
-#            github.issues.addLabels({
-#              issue_number: context.issue.number,
-#              owner: context.repo.owner,
-#              repo: context.repo.repo,
-#              labels: ['Triage']
-#            })
+      - name: set label
+        if: ${{ env.fips_changed }}
+        uses: actions/github-script@v4
+        with:
+          github-token: ${{secrets.GITHUB_TOKEN}}
+          script: |
+            github.issues.addLabels({
+              issue_number: context.issue.number,
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              labels: ['severity: fips change']
+            })