Sha256: a7eafa1dc6eacc3ff0b098054145b2a255d086b3da67d04733f5a9b50bcf17b1

Contents?: true

Size: 1.36 KB

Versions: 9

Compression:

Stored size: 1.36 KB

Contents

name: release-tag

on:
  repository_dispatch:
    types: [ metanorma/mn2pdf ]

jobs:
  tag_repo:
    runs-on: ubuntu-18.04
    if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
    steps:
      - uses: actions/checkout@v3
        with:
          token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}

      - name: Parse mn2pdf version
        env:
          MN2PDF_TAG: ${{ github.event.client_payload.ref }}
        run: echo MN2PDF_VERSION=${MN2PDF_TAG#*/v} >> ${GITHUB_ENV}

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.1'
          bundler-cache: true

      - run: gem install gem-release

      - run: gem bump --version ${MN2PDF_VERSION} --no-commit

      - run: bundle exec rake bin/mn2pdf.jar

      - run: bundle exec rake

      - name: Push commit and tag
        run: |
          git config --global user.name "metanorma-ci"
          git config --global user.email "metanorma-ci@users.noreply.github.com"
          git add -u lib/mn2pdf/version.rb
          git commit -m "Bump version to ${MN2PDF_VERSION}"
          git tag v${MN2PDF_VERSION}
          git push origin HEAD:${GITHUB_REF} --tags

      - if: failure()
        uses: JasonEtco/create-an-issue@v2
        env:
          GITHUB_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
        with:
          assignees: CAMOBAP
          update_existing: true
          search_existing: all

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mn2pdf-1.60 .github/workflows/release-tag.yml
mn2pdf-1.59 .github/workflows/release-tag.yml
mn2pdf-1.58 .github/workflows/release-tag.yml
mn2pdf-1.57 .github/workflows/release-tag.yml
mn2pdf-1.56 .github/workflows/release-tag.yml
mn2pdf-1.55 .github/workflows/release-tag.yml
mn2pdf-1.54 .github/workflows/release-tag.yml
mn2pdf-1.53 .github/workflows/release-tag.yml
mn2pdf-1.52 .github/workflows/release-tag.yml