Sha256: 9ae9bb1ee8fae52315c426d2ed487587a34f80482877dc0d205569e5156234db

Contents?: true

Size: 1.66 KB

Versions: 11

Compression:

Stored size: 1.66 KB

Contents

name: Update

on:
  workflow_dispatch:
  schedule:
    - cron: '5 7 * * 1'

jobs:
  update:
    name: Check for updates

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 3.0.0
        bundler-cache: true
    - name: Unset bundler deployment
      run: bundle config unset deployment
    - name: Get Outdated
      id: outdated
      run: |
        eval "$(bundle outdated rubocop rubocop-performance |
        grep rubocop |
        awk '{print "echo \"::set-output name="$1"_OLD::"$2"\"; echo \"::set-output name="$1"_NEW::"$3"\";"}' - )";
    - name: Update Changelog
      run: |
        eval "$(bundle outdated rubocop rubocop-performance |
        grep rubocop |
        awk '{print "sed -i \"2i* Update "$1" from "$2" to ["$3"](https://github.com/rubocop/"$1"/tag/v"$3")\" CHANGELOG.md"}' - )";
        sed -i '2i\\n## Unreleased\n' CHANGELOG.md;
    - name: Update Gemspec
      run: |
        eval "$(bundle outdated rubocop rubocop-performance |
        grep rubocop |
        awk '{print "sed -i /\"" $1 "\"/s/" $2 "/" $3 "/ standard.gemspec"}' - )"
    - name: Update Gemfile
      run: bundle update
    - name: Get current date
      id: date
      run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v3
      with:
        reviewers: camilopayan
        commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
        title: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
        delete-branch: true
        branch: update-deps-${{ steps.date.outputs.date }}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
standard-1.10.0 .github/workflows/update.yml
standard-1.9.1 .github/workflows/update.yml
standard-1.9.0 .github/workflows/update.yml
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/standard-1.8.0/.github/workflows/update.yml
standard-1.8.0 .github/workflows/update.yml
standard-1.7.3 .github/workflows/update.yml
standard-1.7.2 .github/workflows/update.yml
standard-1.7.1 .github/workflows/update.yml
standard-1.7.0 .github/workflows/update.yml
standard-1.6.0 .github/workflows/update.yml
standard-1.5.0 .github/workflows/update.yml