ci: Improve step filters (#629)

This commit is contained in:
Shohei Ueda 2021-07-10 11:19:30 +09:00 committed by GitHub
parent 3edcc53d62
commit 063f7de6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,14 +25,14 @@ on:
jobs: jobs:
dev-image-test: dev-image-test:
runs-on: ubuntu-18.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
- name: Login to Packages - name: Login to Packages
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login 'docker.pkg.github.com' -u 'peaceiris' --password-stdin
- run: docker-compose pull --quiet - run: docker-compose pull --quiet
if: github.event_name == 'pull_request' if: ${{ github.event_name == 'pull_request' }}
- run: make build - run: make build
- run: docker images - run: docker images
- run: docker-compose push - run: docker-compose push
if: github.ref == 'refs/heads/main' && github.event.repository.fork == false if: ${{ github.ref == 'refs/heads/main' && github.event.repository.fork == false }}