From 6a105858020540d15e7e8b47edb4f6e026e2da84 Mon Sep 17 00:00:00 2001 From: Macpie Date: Tue, 14 May 2024 12:22:41 -0700 Subject: [PATCH] Revert comments --- .github/workflows/Package.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index d2afd4bcf..1cd7639c8 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -1,16 +1,9 @@ name: Package -# on: -# workflow_run: -# workflows: [Tests] -# types: [completed] - on: - pull_request: - branches: [main] - push: - branches: ["main"] - tags: ["*"] + workflow_run: + workflows: [Tests] + types: [completed] env: CARGO_INCREMENTAL: 0 # this setting is automatically applied by rust-cache but documented here for explicitness @@ -22,7 +15,7 @@ env: jobs: on-failure: runs-on: oracles-20.04 - # if: ${{ github.event.workflow_run.conclusion == 'failure' }} + if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - run: echo 'The triggering workflow failed' on-success: @@ -30,9 +23,10 @@ jobs: concurrency: group: ${{ github.workflow }}-${{ github.ref }}-build-release cancel-in-progress: true - # if: ${{ github.event.workflow_run.conclusion == 'success' }} && contains(github.ref, 'refs/tags/') + if: ${{ github.event.workflow_run.conclusion == 'success' }} && contains(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - name: Install protoc @@ -54,8 +48,7 @@ jobs: - name: Debian packaging env: - # PACKAGECLOUD_API_KEY: ${{ secrets.PACKAGECLOUD_API_KEY }} - PACKAGECLOUD_API_KEY: XXX + PACKAGECLOUD_API_KEY: ${{ secrets.PACKAGECLOUD_API_KEY }} run: | chmod +x ./.github/scripts/make_debian.sh ./.github/scripts/make_debian.sh