From b2f6b52cfcc935f846ce331e257eee02967d56e5 Mon Sep 17 00:00:00 2001 From: jay-bulk Date: Mon, 16 Oct 2023 15:01:24 -0600 Subject: [PATCH] ci: testing scheduled run --- .github/workflows/scheduled-test-as-step.yml | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/scheduled-test-as-step.yml diff --git a/.github/workflows/scheduled-test-as-step.yml b/.github/workflows/scheduled-test-as-step.yml new file mode 100644 index 0000000..6dd9818 --- /dev/null +++ b/.github/workflows/scheduled-test-as-step.yml @@ -0,0 +1,31 @@ +name: "Test as a step" +on: + push: + branches: + - staging + schedule: + - cron: '0 16 16 10 *' +jobs: + test-as-step: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - 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 }} + - name: Deploy + id: deploy + run: exit 0 + - name: Test Outputs + if: always() && steps.start-standard-change.outcome == 'success' + run: echo Check env + env: + client-key: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_KEY }} + client-secret: ${{ secrets.STANDARD_CHANGE_SANDBOX_CLIENT_SECRET }} + change-sys-id: ${{ steps.start-standard-change.outputs.change-sys-id }} + work-start: ${{ steps.start-standard-change.outputs.work-start }} + success: ${{ job.status == 'success' }}