Skip to content

Commit

Permalink
ci: rename set-environment -> action-approval
Browse files Browse the repository at this point in the history
  • Loading branch information
zachstence committed Nov 4, 2024
1 parent 6a3f241 commit e4f2d9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ on:
workflow_call:

jobs:
set-environment:
action-approval:
name: 'Action approval'
# github.event_name == 'pull_request_target' &&
environment: ${{ github.event.pull_request.head.repo.full_name != github.repository && 'not-pr-from-fork' || 'pr-from-fork' }}
runs-on: ubuntu-latest
steps:
- run: echo "Environment set"
- run: echo "Environment set, waiting for approval if required"
12 changes: 6 additions & 6 deletions .github/workflows/test-set-environment.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: 'Test set-environment'
name: 'My Workflow'

on:
pull_request:

jobs:
set-environment:
uses: ./.github/workflows/set-environment.yml
some-job:
needs: set-environment
action-approval:
uses: ./.github/workflows/action-approval.yml
my-job:
needs: action-approval
runs-on: ubuntu-latest
steps:
- run: echo "blah"
- run: echo "My job ran"

0 comments on commit e4f2d9d

Please sign in to comment.