-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from hummingbird-community-template c714b40ae85d283e54d67fc4c8…
…f4a3602811a059 (#7) Co-authored-by: adam-fowler <[email protected]>
- Loading branch information
1 parent
dba4fbe
commit 556b1fc
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
|
||
|