Skip to content

Commit

Permalink
Add testing workflows (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldeichfuss authored Dec 31, 2021
1 parent 211845f commit f503efa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/sample-release-workflow.yml
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'
1 change: 0 additions & 1 deletion .github/workflows/test.yml
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
Expand Down

0 comments on commit f503efa

Please sign in to comment.