Skip to content

Commit

Permalink
Merge pull request #373 from cbgbt/pin-github-actions
Browse files Browse the repository at this point in the history
Pin GitHub actions
  • Loading branch information
cbgbt authored Sep 16, 2024
2 parents 8a3b617 + 5fc32f3 commit b94c8f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ on:
jobs:
# Create the Github Release™ so the packages have something to be uploaded to
create-release:
if: github.repository == 'bottlerocket-os/twoliter'
environment: release
runs-on:
group: bottlerocket
Expand Down Expand Up @@ -93,6 +94,7 @@ jobs:
# Build and packages all the things
upload-artifacts:
if: github.repository == 'bottlerocket-os/twoliter'
# Let the initial task tell us to not run (currently very blunt)
needs: create-release
if: ${{ needs.create-release.outputs.has-releases == 'true' }}
Expand Down Expand Up @@ -150,6 +152,7 @@ jobs:
# Mark the Github Release™ as a non-draft now that everything has succeeded!
publish-release:
if: github.repository == 'bottlerocket-os/twoliter'
# Only run after all the other tasks, but it's ok if upload-artifacts was skipped
needs: [create-release, upload-artifacts]
if: ${{ always() && needs.create-release.result == 'success' && (needs.upload-artifacts.result == 'skipped' || needs.upload-artifacts.result == 'success') }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:
- "**.md"
- "**.plantuml"
- "**.svg"
# triggers when a PR is merged
push:
branches: [develop]
paths-ignore:
- "**.md"
- "**.plantuml"
- "**.svg"
jobs:
build:
runs-on:
Expand Down

0 comments on commit b94c8f8

Please sign in to comment.