summaryrefslogtreecommitdiffstats
path: root/.github/workflows/fips-checksums.yml
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-05-19 09:50:17 +0200
committerTomas Mraz <tomas@openssl.org>2021-05-21 09:43:04 +0200
commit9ad400f788fd4f1e36f0814c1952e2c4cbc3b970 (patch)
tree84b4cce1596908c077e6dce78b00116f37904a18 /.github/workflows/fips-checksums.yml
parentcc9f9b98997ce3aca276dc6dbbe6d98efab4e65d (diff)
FIPS label CI: Save PR number and use it
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15345)
Diffstat (limited to '.github/workflows/fips-checksums.yml')
-rw-r--r--.github/workflows/fips-checksums.yml20
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/fips-checksums.yml b/.github/workflows/fips-checksums.yml
index 973778b62f..17d8b4073d 100644
--- a/.github/workflows/fips-checksums.yml
+++ b/.github/workflows/fips-checksums.yml
@@ -16,8 +16,7 @@ jobs:
run: |
mkdir ./build-pristine
mkdir ./build
- mkdir ./empty
- touch ./empty/placeholder
+ mkdir ./artifact
- name: config pristine
run: ../config enable-fips && perl configdata.pm --dump
working-directory: ./build-pristine
@@ -44,17 +43,12 @@ jobs:
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
+ run: make diff-fips-checksums && touch ../artifact/fips_unchanged || ( touch ../artifact/fips_changed ; echo FIPS CHANGED )
working-directory: ./build
- - name: save artifact fips_changed
- if: ${{ env.fips_changed }}
+ - name: save PR number
+ run: echo ${{ github.event.number }} > ./artifact/pr_num
+ - name: save artifact
uses: actions/upload-artifact@v2
with:
- name: fips_changed
- path: empty/
- - name: save artifact fips_unchanged
- if: ${{ env.fips_unchanged }}
- uses: actions/upload-artifact@v2
- with:
- name: fips_unchanged
- path: empty/
+ name: fips_checksum
+ path: artifact/