Skip to content

Update CEFI_MOM6-ci.yaml #12

Update CEFI_MOM6-ci.yaml

Update CEFI_MOM6-ci.yaml #12

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