-
Notifications
You must be signed in to change notification settings - Fork 71
33 lines (28 loc) · 982 Bytes
/
pr-external.yaml
File metadata and controls
33 lines (28 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Workflow for External PRs with Unit & Integration Tests
on:
pull_request_target:
types: [opened, synchronize]
branches:
- main
jobs:
Timestamp_PR_CREATED:
uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main
authorize:
if: github.event.pull_request.head.repo.full_name != github.repository
needs: [Timestamp_PR_CREATED]
environment: "external"
runs-on: ubuntu-latest
steps:
- run: true
Timestamp_PR_APPROVED:
needs: [authorize]
uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main
tests:
needs: [authorize, Timestamp_PR_APPROVED]
uses: storyprotocol/gha-workflows/.github/workflows/reusable-build-test-workflow.yml@main
with:
sha: ${{ github.event.pull_request.head.sha }}
ENVIRONMENT: "odyssey"
secrets:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
TEST_WALLET_ADDRESS: ${{ secrets.TEST_WALLET_ADDRESS }}