diff --git a/.github/workflows/breakage.yml b/.github/workflows/breakage.yml index 847e6a7f..7efd1957 100644 --- a/.github/workflows/breakage.yml +++ b/.github/workflows/breakage.yml @@ -3,8 +3,11 @@ name: Breakage on: pull_request: branches: - - master - + - master + push: + branches: + - master + tags: '*' jobs: break: runs-on: ubuntu-latest @@ -62,26 +65,12 @@ jobs: julia -e 'using Pkg; PKG, TAG, VERSION = ENV["PKG"], ENV["TAG"], ENV["VERSION"] joburl = joinpath(ENV["GITHUB_SERVER_URL"], ENV["GITHUB_REPOSITORY"], "actions/runs", ENV["GITHUB_RUN_ID"]) - open("../pr/$PKG-$VERSION", "w") do io - try - TAG == "no_tag" && error("Not tag for $VERSION") - pkg"activate ."; - pkg"instantiate"; - pkg"dev ../"; - if TAG == "latest" - global TAG = chomp(read(`git rev-parse --short HEAD`, String)) - end - pkg"build"; - pkg"test"; - - print(io, "[![](https://img.shields.io/badge/$TAG-Pass-green)]($joburl)"); - catch e - @error e; - print(io, "[![](https://img.shields.io/badge/$TAG-Fail-red)]($joburl)"); - end; - end' - - - uses: actions/upload-artifact@v2 - with: - name: pr - path: pr/ \ No newline at end of file + TAG == "no_tag" && error("Not tag for $VERSION") + pkg"activate ."; + pkg"instantiate"; + pkg"dev ../"; + if TAG == "latest" + global TAG = chomp(read(`git rev-parse --short HEAD`, String)) + end + pkg"build"; + pkg"test";' \ No newline at end of file