-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.09 KB
/
sync-submodules.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
name: Sync submodules
on:
schedule:
- cron: "*/30 * * * 1-5" # every 30 minutes, Mon - Fri
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.PUBTAGS_BOT_REPO_TOKEN }}
- name: Update submodules
run: |
git submodule update --remote
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
push-to-fork: publisher-ads-audits-bot/google-publisher-tag-playground
token: ${{ secrets.PUBTAGS_BOT_REPO_TOKEN }}
committer: Google Publisher Tags Bot <[email protected]>
title: "Update submodules"
body: "Automated PR to update submodules of googleads/google-publisher-tag-playground"
commit-message: "Update submodules"
branch: "submodules"
delete-branch: true