forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.68 KB
/
sync-templates-and-ci-config.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Sync templates and CI config.
on:
push:
branches:
- debug-sync
- master
jobs:
sync-templates-and-ci-config:
if: github.repository == 'Homebrew/homebrew-cask'
runs-on: ubuntu-latest
strategy:
matrix:
repo:
- Homebrew/homebrew-cask-drivers
- Homebrew/homebrew-cask-fonts
- Homebrew/homebrew-cask-versions
steps:
- name: Clone main repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Clone secondary repository
uses: actions/checkout@v2
with:
repository: ${{ matrix.repo }}
path: vendor/${{ matrix.repo }}
persist-credentials: false
- name: Configure Git user
uses: Homebrew/actions/git-user-config@master
with:
username: BrewTestBot
- name: Detect changes
id: detect_changes
run: ./.github/actions/sync/templates.rb 'vendor/${{ matrix.repo }}' '${{ matrix.repo }}' 'sync-templates-and-ci-config'
- name: Create pull request
uses: peter-evans/create-pull-request@d9d6fd980e1e0904e8e4dce3f0992640091bde37
with:
path: vendor/${{ matrix.repo }}
token: ${{ secrets.HOMEBREW_CASK_SYNC_TOKEN }}
branch: sync-templates-and-ci-config
title: Synchronize templates and CI configuration.
body: >
This pull request was created automatically by the
[`sync-templates-and-ci-config`](https://github.com/Homebrew/homebrew-cask/blob/master/.github/workflows/sync-templates-and-ci-config.yml)
workflow.
if: ${{ steps.detect_changes.outputs.pull_request == 'true' }}