Skip to content

Commit

Permalink
fix: ci cron (#41)
Browse files Browse the repository at this point in the history
* chore: `cron` job can now be triggered manually

* test: use `peter-evans/create-pull-request`
  • Loading branch information
leovct authored Feb 5, 2024
1 parent 6070d4f commit 24055c5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Weekly submodules update
on:
schedule:
- cron: '0 5 * * 1' # Run every Monday at 6 AM (UTC+1) - Paris
workflow_dispatch: # To debug.

env:
PNPM_VERSION: '8.11.0'
Expand Down Expand Up @@ -33,14 +34,5 @@ jobs:
echo "No changes detected."
fi
- name: Create PR
if: steps.check_changes.outputs.changes == 'true'
run: |
branch_name="submodules-update-$(date +'%Y%m%d')"
git checkout -b $branch_name
git add .
git commit -m "[🤖] chore: update submodules"
git push origin $branch_name
hub pull-request -m "[🤖] chore: update submodules" -b main -h $branch_name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6

0 comments on commit 24055c5

Please sign in to comment.