diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46e00209..798211a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: run: | make build - name: Upload linux build - if: matrix['go-version'] == '1.16.x' && (contains(github.ref, 'master') || contains(github.event.pull_request.body, '[Build]')) + if: matrix['go-version'] == '1.16.x' && (github.ref == 'refs/head/master' || contains(github.event.pull_request.body, '[Build]')) uses: actions/upload-artifact@v1 with: name: anycable-go-Linux-x86_64 @@ -64,7 +64,7 @@ jobs: run: | make build - name: Upload MacOS build - if: matrix['go-version'] == '1.16.x' && (contains(github.ref, 'master') || contains(github.event.pull_request.body, '[Build]')) + if: matrix['go-version'] == '1.16.x' && (github.ref == 'refs/head/master' || contains(github.event.pull_request.body, '[Build]')) uses: actions/upload-artifact@v1 with: name: anycable-go-Darwin-x86_64