git.delta.rocks / unique-network / refs/commits / 769ffcff2cc4

difftreelog

source

.github/workflows/schedule-trigger-for-develop-build.yml1.2 KiBsourcehistory
1name: schedule-trigger-for-develop-build2on:3  # update the branch ci/develop-scheduler every night4  # schedule:5  #   - cron: '0 1 * * *'6  # or update the branch manually7  workflow_dispatch:8  # pull_request:9  #   branches: [ 'develop' ]10  #   types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]1112jobs:13  update:14    runs-on: medium15    steps:16      - name: Clean Workspace17        uses: AutoModality/action-clean@v1.1.018      - name: Checkout 🛎19        uses: actions/checkout@v3.1.020        with:21          # check out all branches22          fetch-depth: 023          # token: ${{ secrets.GH_PAT }}24      - name: Update Git branch ci/develop-scheduler25        run: |26          git config user.name "Unique"27          git config user.email github-actions@usetech.com28          git checkout ci/develop-scheduler29          echo $(date) > .github/scheduler30          git commit -a -m "commit timestamp for scheduler on $(date)"31          git merge origin/develop --no-edit -m "Merged develop branch on $(date +%F)"32      - name: Push the updated branch X33        run: |34          git push origin ci/develop-scheduler35      - name: Clean Workspace36        if: always()37        uses: AutoModality/action-clean@v1.1.0