Skip to content

Merge pull request #57 from byu-oit/automation #41

Merge pull request #57 from byu-oit/automation

Merge pull request #57 from byu-oit/automation #41

Workflow file for this run

name: "Test as a job"
on:
push:
branches:
- staging
jobs:
# Build, unit tests, linting, etc.
# ...
start-standard-change:
name: Start Standard Change
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start Standard Change
uses: ./
id: start-standard-change
with:
client-key: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_KEY }}
client-secret: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_SECRET }}
template-id: ${{ secrets.TEST_TEMPLATE_ID }}
outputs:
change-sys-id: ${{ steps.start-standard-change.outputs.change-sys-id }}
work-start: ${{ steps.start-standard-change.outputs.work-start }}
deploy:
name: Deploy
needs: start-standard-change
runs-on: ubuntu-latest
steps:
- name: Deploy
run: exit 0
test-outputs:
name: Test Outputs
needs: [deploy, start-standard-change]
if: always() && needs.start-standard-change.result == 'success'
runs-on: ubuntu-latest
steps:
- run: echo Check env
env:
client-key: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_KEY }}
client-secret: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_SECRET }}
change-sys-id: ${{ needs.start-standard-change.outputs.change-sys-id }}
work-start: ${{ needs.start-standard-change.outputs.work-start }}
success: ${{ needs.deploy.result == 'success' }}