Skip to content

Commit

Permalink
Only run epoch duration check on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit authored and atodorov committed Aug 15, 2023
1 parent c04c715 commit 61f98b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/check-runtime-changes.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Version
name: Check runtime changes

on:
pull_request:
Expand All @@ -18,3 +18,14 @@ jobs:
- name: Check if version.rs was modified
run: |
./scripts/check-version.sh "remotes/origin/$GITHUB_BASE_REF" "$GITHUB_SHA"
# dangerous conditions that will brick the blockchain
danger-will-brick-the-blockchain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for changes in Proof-of-Stake EPOCH duration
run: |
./scripts/check-for-changes-in-epoch-duration.sh "remotes/origin/$GITHUB_BASE_REF" "$GITHUB_SHA"
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,6 @@ jobs:
run: |
./scripts/check-for-used-forks.sh
# dangerous conditions that will brick the blockchain
danger-will-brick-the-blockchain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Check for changes in Proof-of-Stake EPOCH duration
run: |
./scripts/check-for-changes-in-epoch-duration.sh "remotes/origin/$GITHUB_BASE_REF" "$GITHUB_SHA"
audit:
name: cargo audit
runs-on: ubuntu-latest
Expand Down

0 comments on commit 61f98b9

Please sign in to comment.