Skip to content

Commit

Permalink
Update pr-internal.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolania committed Dec 10, 2024
1 parent 75c8eb7 commit 0e55860
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/pr-internal.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Workflow for internal PRs
name: Conditional Workflow

on:
pull_request:
branches:
- main
- dev
- origin/dev-bpolania/workflows
push:
branches:
- origin/dev-bpolania/workflows

jobs:
Timestamp:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main

build_and_test:

pr_build_and_test:
if: github.event_name == 'pull_request'
needs: [Timestamp]
uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-unit-test-workflow.yml@main
with:
Expand All @@ -20,4 +23,14 @@ jobs:
secrets:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }}


push_build_and_test:
if: github.event_name == 'push'
needs: [Timestamp]
uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-integration-test-workflow.yml@main
with:
sha: ${{ github.sha }}
ENVIRONMENT: "beta-sepolia"
secrets:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }}

0 comments on commit 0e55860

Please sign in to comment.