Sha256: c78ecaf403961cc26b51e216c31214f09937160e0bd278d4429aac7624a8542f

Contents?: true

Size: 1.36 KB

Versions: 8

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@v2
        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: '2.6'
          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

8 entries across 8 versions & 1 rubygems

Version Path
mn2pdf-1.50 .github/workflows/release-tag.yml
mn2pdf-1.49 .github/workflows/release-tag.yml
mn2pdf-1.48 .github/workflows/release-tag.yml
mn2pdf-1.47 .github/workflows/release-tag.yml
mn2pdf-1.46 .github/workflows/release-tag.yml
mn2pdf-1.45 .github/workflows/release-tag.yml
mn2pdf-1.44 .github/workflows/release-tag.yml
mn2pdf-1.42 .github/workflows/release-tag.yml