generated from actions/typescript-action
-
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
1 parent
211845f
commit f503efa
Showing
2 changed files
with
23 additions
and
1 deletion.
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,23 @@ | ||
name: 'Sample Release Workflow' | ||
|
||
on: | ||
release: | ||
type: [published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get Status of current ref | ||
id: get-status | ||
uses: ./ | ||
with: | ||
ref: ${{ github.sha }} | ||
- name: Print status check results | ||
run: | | ||
echo "All checks completed: ${{steps.get-status.outputs.all-checks-completed}}" | ||
echo "All checks passed: ${{steps.get-status.outputs.all-checks-passed}}" | ||
- name: Only executes if all checks passed | ||
if: ${{steps.get-status.outputs.all-checks-completed == 'true' && steps.get-status.outputs.all-checks-passed == 'true'}} | ||
run: 'This only runs if all checks passed, now you can safely deploy to production' |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: 'build-test' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
release: | ||
push: | ||
branches: | ||
- main | ||
|