Skip to content

fix test

fix test #64

Workflow file for this run

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 }}