Sha256: 7e4f01256b7378f8a5cfda23a3bb5712948a2b7870ea6134cc47c9469cc4e65b

Contents?: true

Size: 1.92 KB

Versions: 113

Compression:

Stored size: 1.92 KB

Contents

name: Update

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 */100,1-7 * 1'
      # https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
      # In case you want to know how that cron job works to get the first Monday of each month.

jobs:
  update:
    name: Check for updates

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - 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"/releases/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

113 entries across 113 versions & 3 rubygems

Version Path
standard-1.39.0 .github/workflows/update.yml
standard-1.38.0 .github/workflows/update.yml
standard-1.37.0 .github/workflows/update.yml
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
standard-1.35.0.1 .github/workflows/update.yml
standard-1.34.0.1 .github/workflows/update.yml
standard-1.35.1 .github/workflows/update.yml
standard-1.35.0 .github/workflows/update.yml
standard-1.34.0 .github/workflows/update.yml
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/.github/workflows/update.yml