Skip to content

Commit

Permalink
Revert comments
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed May 14, 2024
1 parent 3957057 commit 6a10585
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/Package.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -22,17 +15,18 @@ 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:
runs-on: oracles-20.04
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
Expand All @@ -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

0 comments on commit 6a10585

Please sign in to comment.