Skip to content

Refactor

Refactor #1

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows:
- Run Tests
types:
- completed
jobs:
deploy-to-dev:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event_name == 'pull_request' && github.event.action != 'closed' }}
uses: "./.github/workflows/reusable/deploy.yml"

Check failure on line 13 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
needs: test
with:
environment: Space2Stats API Dev
stage: pr-${{ github.event.pull_request.number }}
pr-number: ${{ github.event.pull_request.number }}
secrets: inherit
deploy-to-production:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event_name == 'push' && github.ref_name == 'main' }}
uses: "./.github/workflows/reusable/deploy.yml"
needs: test
with:
environment: Space2Stats API Prod
stage: prod
secrets: inherit