-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 1.09 KB
/
updateall.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on:
# https://crontab.guru/#0_10,22_*_*_*
schedule:
- cron: '0 8 * * *'
#- cron: '0 10,22 * * *'
workflow_dispatch:
inputs:
print_tags:
description: 'True to print to STDOUT'
required: false
type: boolean
jobs:
sync-notion:
runs-on: ubuntu-latest
timeout-minutes: 45
#if: ${{ inputs.print_tags }}
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Update all refs
run: ./updateall.sh
- name: Add all to git
run: git add -A
- name: Commit & Push changes
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # https://github.com/actions-js/push/releases/tag/v1.4
with:
branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}
message: 'chore: update existing repos ${date}'