Skip to content

Update the CI workflow to not run twice on every internal pull request #479

Update the CI workflow to not run twice on every internal pull request

Update the CI workflow to not run twice on every internal pull request #479

Workflow file for this run

name: Continuous integration
on:
pull_request:
push:
branches:
- main
jobs:
ci:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v3
with:
username: stephanmisc
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: stepchowfun/toast/.github/actions/toast@main
with:
tasks: build check
docker_repo: stephanmisc/toast
read_remote_cache: ${{ github.event_name == 'push' }}
write_remote_cache: ${{ github.event_name == 'push' }}