Merge pull request #981 from simple-login/ac-add-more-info

Action refactor: Only run on push and also send to slack the commit sha
This commit is contained in:
Adrià Casajús 2022-05-12 17:12:04 +02:00 committed by GitHub
commit 514f5c8baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -2,8 +2,6 @@ name: Run tests & Publish to Docker Registry
on:
push:
pull_request:
types: [ 'opened' ]
jobs:
test:
@ -86,7 +84,7 @@ jobs:
- name: Prepare version file
run: |
scripts/generate-build-info.sh ${{ github.ref }}
scripts/generate-build-info.sh ${{ github.sha }}
cat app/build_info.py
- name: Test with pytest
@ -125,7 +123,7 @@ jobs:
- name: Prepare version file
run: |
scripts/generate-build-info.sh ${{ github.ref }}
scripts/generate-build-info.sh ${{ github.sha }}
cat app/build_info.py
- name: Build image and publish to Docker Registry
@ -192,7 +190,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Tag: ${{ github.ref_name }}*"
"text": "*Tag: ${{ github.ref_name }}* (${{ github.sha }})"
}
},
{