VA-394-1-6: add avustusasiaVireilletuloPvm #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yaml | |
secrets: inherit | |
push-green: | |
name: Push to green-master and deploy to dev | |
needs: build | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Update green-master and run deploy-dev.yaml workflow | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git fetch origin green-master:green-master | |
git checkout green-master | |
git merge --ff-only ${{ github.sha }} | |
git push origin green-master | |
gh workflow run deploy-dev.yaml --ref green-master | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |