Skip to content

Commit

Permalink
fix(ci): conditional syntax & others
Browse files Browse the repository at this point in the history
  • Loading branch information
heyhusen committed May 26, 2021
1 parent 5fa9ff1 commit f7ff697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f7ff697

Please sign in to comment.