Skip to content

weekly-update

weekly-update #4

Workflow file for this run

name: weekly-update
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
weekly_update:
name: Rubygems weekly update
runs-on: ${{ matrix.os }}
if: github.repository == 'rubygems/rubygems'
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Config git
run: |
git config --global user.name "License Update"
git config --global user.email [email protected]
git config --global push.autoSetupRemote true
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Check versions
run: |
ruby --version
rake --version
- name: Update SPDX license list
run: |
rake update_licenses_branch
git diff --no-ext-diff --ignore-submodules --quiet "${BASE##*/}" -- || {
git push origin
gh pr create --base "${BASE##*/}" --fill --label "rubygems: enhancement"
}
env:
BASE: ${{ github.ref }}
GH_TOKEN: ${{ github.token }}