-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.71 KB
/
update-from-template.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
53
54
55
56
57
name: Update from template
on:
push:
branches:
- main
paths:
- '.hummingbird-community-template.yml'
workflow_dispatch:
jobs:
linux:
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: App Token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.HB_APP_ID }}
private_key: ${{ secrets.HB_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
path: workspace
- name: Checkout Project Template
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
path: project-template
repository: hummingbird-community/hummingbird-community-template
- name: Install Dependencies
run: |
brew install mint
mint install hummingbird-project/swift-mustache-cli
echo "$HOME/.mint/bin" >> $GITHUB_PATH
- name: Update
run: |
cd project-template
./update.sh ../workspace
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ steps.generate-token.outputs.token }}
path: workspace
commit-message: 'Update from hummingbird-community-template.'
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: project-template-update
title: 'Update from Hummingbird Project Template'
body: 'Automated update of files from https://github.com/hummingbird-community/hummingbird-community-template'
base: main