2024-08-06 10:18:23 +08:00
|
|
|
name: Push custom to released
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-08-06 10:21:25 +08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 */3 * *'
|
2024-08-06 10:18:23 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
push-branch:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-08-06 10:19:44 +08:00
|
|
|
uses: actions/checkout@v4
|
2024-08-06 10:18:23 +08:00
|
|
|
with:
|
|
|
|
ref: custom
|
|
|
|
|
|
|
|
- name: Push to released branch
|
|
|
|
run: |
|
|
|
|
git config --global user.name "${{ github.actor }}"
|
|
|
|
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
|
2024-08-06 10:19:37 +08:00
|
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUBTOKEN }}@github.com/${{ github.repository }}.git
|
2024-08-06 10:18:23 +08:00
|
|
|
git push origin custom:released --force
|