Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Create a PR onto the Zapper API when a release is created (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken authored Mar 31, 2022
1 parent 64ba109 commit d088de9
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,55 @@ jobs:
run: pnpm publish:npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


bump_zapper_studio:
name: Bump @zapper-fi/studio on Zapper API
needs: [release]
runs-on: ubuntu-latest
strategy:
matrix:
repository: [Zapper-fi/zapper-api]
steps:
- name: Checkout ${{ matrix.repository }}
uses: actions/checkout@v2
with:
repository: ${{ matrix.repository }}
fetch-depth: 0
token: ${{ secrets.GH_ZAPPER_BOT }}
ref: master

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'

- uses: pnpm/[email protected]
with:
version: 6.23.2
run_install: true

- name: Upgrade dependencies
run: |
pnpm up @zapper-fi/studio@latest
- name: Set Target Branch
id: set_target_branch
run: |
TARGET_BRANCH=bump-zapper-studio
echo "::set-output name=target_branch::$TARGET_BRANCH"
- name: Create Pull Request
if: ${{ needs.publish_packages.outputs.package_changed == 'true' }}
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_ZAPPER_BOT }}
branch: ${{ steps.set_target_branch.outputs.target_branch }}
title: 🎨🖌️ Bump Zapper Studio
commit-message: Bump Zapper Studio
body: |
⚙️ _This pull request was opened automatically from Zapper-fi/studio._
${{ needs.publish_packages.outputs.changelog }}
base: master

0 comments on commit d088de9

Please sign in to comment.