-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from bugsnag/releases/v3.0.1
Release v3.0.1
- Loading branch information
Showing
27 changed files
with
373 additions
and
138 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
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,66 @@ | ||
name: update-dependencies | ||
|
||
on: | ||
repository_dispatch: | ||
types: [update-dependency] | ||
workflow_dispatch: | ||
inputs: | ||
target_submodule: | ||
description: 'Submodule to update' | ||
required: true | ||
type: string | ||
target_version: | ||
description: 'Version of the submodule to update to' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: macos-latest | ||
env: | ||
SUBMODULE: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.target_submodule || inputs.target_submodule }} | ||
VERSION: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.target_version || inputs.target_version }} | ||
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_ACCESS_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: next | ||
|
||
- run: | | ||
git config --global user.name 'Bumpsnag bot' | ||
git config --global user.email '' | ||
- run: git fetch --prune --unshallow | ||
|
||
- name: Install libcurl4-openssl-dev and net-tools | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libcurl4-openssl-dev net-tools | ||
- name: Install ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Update references locally | ||
run: make update-bugsnag-dependency | ||
|
||
- name: Commit and push changes | ||
run: bundle exec bumpsnag commit_update $SUBMODULE $VERSION | ||
|
||
- name: List current branch name | ||
id: current-branch | ||
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Create pull request | ||
if: ${{ steps.current-branch.outputs.branch != 'next'}} | ||
run: > | ||
gh pr create -B next | ||
-H bumpsnag-$TARGET_SUBMODULE-$TARGET_VERSION | ||
--title "Update $TARGET_SUBMODULE to version $TARGET_VERSION" | ||
--body 'Created by bumpsnag' | ||
--reviewer kstenerud,robert-smartbear |
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
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
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
Oops, something went wrong.