diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 066f395e..8ee0c2aa 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -60,13 +60,13 @@ jobs: cargo build --bin revolt-delta && (cargo run --bin revolt-delta &) - name: Wait for API to go up - if: github.event_name != 'pull_request' && github.ref_name == 'master' + if: github.event_name != 'pull_request' && github.ref_name == 'main' uses: nev7n/wait_for_response@v1 with: url: "http://localhost:8000/" - name: Checkout API repository - if: github.event_name != 'pull_request' && github.ref_name == 'master' + if: github.event_name != 'pull_request' && github.ref_name == 'main' uses: actions/checkout@v3 with: repository: revoltchat/api @@ -74,11 +74,11 @@ jobs: token: ${{ secrets.PAT }} - name: Download OpenAPI specification - if: github.event_name != 'pull_request' && github.ref_name == 'master' + if: github.event_name != 'pull_request' && github.ref_name == 'main' run: curl http://localhost:8000/openapi.json -o api/OpenAPI.json - name: Commit changes - if: github.event_name != 'pull_request' && github.ref_name == 'master' + if: github.event_name != 'pull_request' && github.ref_name == 'main' uses: EndBug/add-and-commit@v4 with: cwd: "api"