Skip to content

Commit

Permalink
Update from hummingbird-community-template c714b40ae85d283e54d67fc4c8…
Browse files Browse the repository at this point in the history
…f4a3602811a059 (#7)

Co-authored-by: adam-fowler <[email protected]>
  • Loading branch information
1 parent dba4fbe commit 556b1fc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/api-breakage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: swift:5.10
image: swift:latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/update-from-template.yml
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


0 comments on commit 556b1fc

Please sign in to comment.