name: Create Test Construct run-name: Creating test construct on: workflow_dispatch: inputs: branch: description: "Branch to build" required: true default: "dev" schedule: - cron: "0 12 * * *" jobs: create_test_branch_and_build: runs-on: windows steps: - name: Checkout dev branch uses: actions/checkout@v4 with: ref: dev - name: Create test branch with date id: create_branch shell: powershell run: | $date = Get-Date -Format "yyyyMMdd" $branchName = "test/$date" git checkout -b $branchName git push origin $branchName Write-Output "::set-output name=branch::$branchName" deploy_docs: needs: create_test_branch_and_build runs-on: windows steps: - name: Checkout test branch uses: actions/checkout@v4 with: ref: ${{ steps.create_branch.outputs.branch }} - name: Deploy documentation uses: ./.gitea/workflows/deploy-docs.yaml with: branch: ${{ steps.create_branch.outputs.branch }} deploy_back: needs: create_test_branch_and_build runs-on: windows steps: - name: Checkout test branch uses: actions/checkout@v4 with: ref: ${{ steps.create_branch.outputs.branch }} - name: Deploy .net project uses: ./.gitea/workflows/deploy-back.yaml with: branch: ${{ steps.create_branch.outputs.branch }} deploy_front: needs: create_test_branch_and_build runs-on: windows steps: - name: Checkout test branch uses: actions/checkout@v4 with: ref: ${{ steps.create_branch.outputs.branch }} - name: Deploy front project uses: ./.gitea/workflows/deploy-front.yaml with: branch: ${{ steps.create_branch.outputs.branch }}