-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
on: | ||
pull_request_target: | ||
branches: [ master ] | ||
|
||
jobs: | ||
approve: # First step | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Approve | ||
run: echo For security reasons, all pull requests need to be approved first before running any automated CI. | ||
|
||
build: # Second step | ||
runs-on: ubuntu-latest | ||
|
||
needs: [approve] # Require the first step to finish | ||
environment: | ||
name: approved-forks # Our dummy environment | ||
steps: | ||
- name: Test secret | ||
run: | | ||
echo "Test secret => ${TEST_SECRET}" | ||
if [[ "x${{ secrets.TEST_SECRET }}" == "x442" ]]; then | ||
echo "secret is good" | ||
else | ||
echo "no secrets" | ||
exit 1 | ||
fi | ||
env: | ||
TEST_SECRET: ${{ secrets.ENV_SECRET }} |