Sha256: 51ec1f5c48f51fad54742547c08ae3c48dd22c3c7eb23758ee224e10e0f554f8

Contents?: true

Size: 830 Bytes

Versions: 2

Compression:

Stored size: 830 Bytes

Contents

name: auto-update

on:
  schedule:
    - cron:  '0 0 1 * *'
  workflow_dispatch:

jobs:
  update-jplocalgov-data:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.1
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - name: update jplocalgov data
        run: bundle exec rake jplocalgov:data:update_all
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3
        with:
          base: main
          branch: update_jplocalgov_data
          branch-suffix: timestamp
          delete-branch: true
          title: bundle exec rake jplocalgov:data:update_all
          commit-message: bundle exec rake jplocalgov:data:update_all

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jp_local_gov-1.0.0 .github/workflows/auto-update.yml
jp_local_gov-0.3.1 .github/workflows/auto-update.yml