diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml index b13a247..9a6f9b2 100644 --- a/.github/workflows/rake.yml +++ b/.github/workflows/rake.yml @@ -8,6 +8,9 @@ on: tags: [ v* ] pull_request: +permissions: + contents: write + jobs: rake: uses: metanorma/ci/.github/workflows/generic-rake.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4abf3d5..94f69c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,23 @@ on: inputs: next_version: description: | - Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc + Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc). + Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version required: true default: 'skip' - push: - tags: [ v* ] + repository_dispatch: + types: [ do-release ] + +permissions: + contents: write + packages: write + id-token: write jobs: release: - uses: metanorma/ci/.github/workflows/rubygems-release.yml@main + uses: metanorma/support/.github/workflows/release.yml@main with: next_version: ${{ github.event.inputs.next_version }} secrets: rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }} - pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} diff --git a/.rubocop.yml b/.rubocop.yml index b69d50f..ac0ef06 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,10 +1,10 @@ # Auto-generated by Cimas: Do not edit it manually! # See https://github.com/metanorma/cimas inherit_from: - - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml + - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml # local repo-specific modifications # ... AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 3.4