-
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (45 loc) · 1.5 KB
/
sync-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
name: Sync CI config from `homebrew/cask`.
on:
push:
paths:
- .github/workflows/sync-ci-config.yml
branches:
- main
schedule:
- cron: '33 4 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Clone main repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Clone secondary repository
uses: actions/checkout@v2
with:
repository: Homebrew/homebrew-cask
path: homebrew-cask
persist-credentials: false
- name: Copy CI config
run: |
cp -f homebrew-cask/.github/workflows/ci.yml .github/workflows/ci.yml
rm -r homebrew-cask
- name: Generate app token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}
- name: Create pull request
uses: peter-evans/create-pull-request@d4d765620e42850f137c634f5055f309421c1fc5
with:
token: ${{ steps.generate_token.outputs.token }}
branch: sync-ci-config
title: Synchronize CI configuration from `homebrew/cask`.
body: >
This pull request was created automatically by the
[`sync-ci-config`](https://github.com/reitermarkus/homebrew-tap/blob/master/.github/workflows/sync-ci-config.yml)
workflow.
commit-message: Update `ci.yml`.
author: Markus Reiter <[email protected]>