This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a PR onto the Zapper API when a release is created (#91)
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |