Update CEFI_MOM6-ci.yaml #12
Workflow file for this run
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
on: | |
schedule: | |
- cron: '0 0 * * *' # Run daily at midnight | |
push: | |
branches: [ "feature/update-ci" ] | |
jobs: | |
stable_nightly_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Show diff between stable/nightly_release and feature/update-ci | |
if: github.ref == 'refs/heads/feature/update-ci' | |
run: | | |
echo "Showing diff between stable/nightly_release and feature/update-ci" | |
git fetch origin stable/nightly_release:stable/nightly_release | |
git diff stable/nightly_release..origin/feature/update-ci | |
- name: Merge develop into main | |
if: github.ref == 'refs/heads/feature/update-ci' | |
run: | | |
echo ${{ github.ref }} | |
git checkout stable/nightly_release | |
git pull origin stable/nightly_release | |
git merge origin/feature/update-ci --no-edit | |
git push --force origin stable/nightly_release |