fix(ci): conditional syntax & others
CI / Pretest (with Dockerfile) (push) Successful in 1m49s
CI / Publish container image (push) Has been cancelled
CI / Test (with pre-built Container Image) (push) Has been cancelled

This commit is contained in:
Ahmad Husen
2021-05-26 10:29:34 +07:00
parent 5fa9ff1a99
commit f7ff69715a
+3 -3
View File
@@ -42,7 +42,7 @@ jobs:
publish:
name: Publish container image
needs: pretest
if: ${{ github.event_name != 'pull_request' }}
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
@@ -96,9 +96,9 @@ jobs:
run: wget https://github.com/official-human/nonicons-font/raw/main/PKGBUILD
- name: Update action.yml to use edge tagged container image
if: ${{ github.ref != 'refs/tags/*' }}
if: github.ref == 'refs/heads/main'
run: |
sed -i 's/.*image\:.*/ image\: \"ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml
sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml
cat action.yml
- name: Running tests