Skip to content

Sync CI config from homebrew/cask. #1170

Sync CI config from homebrew/cask.

Sync CI config from homebrew/cask. #1170

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]>