Skip to content

Fix incorrect variable #31

Fix incorrect variable

Fix incorrect variable #31

name: update-dependencies
on:
push:
branches:
- 'dep-updater'
jobs:
update-dependencies:
runs-on: ubuntu-latest
env:
TARGET_SUBMODULE: bugsnag-cocoa
TARGET_VERSION: v6.1.0
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
ref: dep-updater
- run: |
git config --global user.name 'Bumpsnag bot'
git config --global user.email ''
- run: git fetch --prune --unshallow
- run: git submodule update --init --recursive
- 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
- run: bundle exec rake dependencies:update
- 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 != 'dep-updater'}}
run: >
gh pr create -B dep-updater
-H bumpsnag-$TARGET_SUBMODULE-$TARGET_VERSION
--title "Update $TARGET_SUBMODULE to version $TARGET_VERSION"
--body 'Created by bumpsnag'
--reviewer cawllec