mnconvert 1.41.0 → 1.42.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 599779de597556020ecea4be34b04bbe1a1d7180a803ec50d8d5a2d556c339eb
4
- data.tar.gz: e5b21999002e6390955d23f1a162c4282f92889b35b70e828ba675b6ba818923
3
+ metadata.gz: 5591d214d4e9f7b11c6ec8feb70a1ad85c3a335d32ef5be72aca6a948dcd0117
4
+ data.tar.gz: 04e3aef956b6ba0a3542cd1f9590cfcf24af2a50fe4cc72f830207b4b996378d
5
5
  SHA512:
6
- metadata.gz: 7c80e261ac3737979ddddf99425a65cd5a326905d677c69a1b0904fa6d0fc223352d30ee6905f0f7bc5a4dfd66b3c2f279f803c4b9a351ff1a29e3ba6b30e3d7
7
- data.tar.gz: 64ed578c9613d920435e793f4212d5ed8a19a948c4a64d8c2095ed0e8cde45b83601cc50e637bf8e8fd50c6be97469a25bc9084e0c7db96c1251dbabae378aad
6
+ metadata.gz: 9ae3e13082295cec61abe6bbf528ebab959b955eaa6d61199f341a7c071efce84fadacfd2f504249cef55757df95c1d5b1bc84c5ba7fb83738ec160e3443aa19
7
+ data.tar.gz: 909f338b5355de080ad7f95e8e2c87dfb0f0bf59496c7348719f2e8e5a57ab119cd844a02f0b48234206125adfd07a6f7d90b11609679aa6b03b9750798f63c9
@@ -7,8 +7,12 @@ on:
7
7
  required: false
8
8
 
9
9
  jobs:
10
+ prepare:
11
+ uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
12
+
10
13
  prepare-ieee:
11
14
  runs-on: ubuntu-latest
15
+ needs: prepare
12
16
  concurrency:
13
17
  group: '${{ github.workflow }}-${{ github.head_ref || github.ref_name }}'
14
18
  cancel-in-progress: true
@@ -28,7 +32,7 @@ jobs:
28
32
 
29
33
  - uses: ruby/setup-ruby@v1
30
34
  with:
31
- ruby-version: '3.0'
35
+ ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
32
36
  bundler-cache: true
33
37
  working-directory: ieee/samples
34
38
 
@@ -7,26 +7,31 @@ on:
7
7
  pull_request:
8
8
 
9
9
  jobs:
10
+ prepare:
11
+ uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
12
+
10
13
  prepare-ieee:
11
14
  uses: ./.github/workflows/prepare.yml
12
15
  secrets:
13
16
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
14
17
 
15
18
  rake:
16
- name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
19
+ name: Test on Ruby ${{ matrix.ruby.version }} ${{ matrix.os }}
20
+ runs-on: ${{ matrix.os }}
21
+
22
+ needs: [prepare, prepare-ieee]
23
+ if: needs.prepare.outputs.push-for-tag != 'true'
24
+
17
25
  concurrency:
18
- group: '${{ github.workflow }}-${{ matrix.os }}-${{ matrix.ruby }}-${{ github.head_ref || github.ref_name }}'
26
+ group: '${{ github.workflow }}-${{ matrix.os }}-${{ matrix.ruby.version }}-${{ github.head_ref || github.ref_name }}'
19
27
  cancel-in-progress: true
20
- needs: [ prepare-ieee ]
21
- runs-on: ${{ matrix.os }}
22
- continue-on-error: ${{ matrix.experimental }}
28
+
29
+ continue-on-error: ${{ matrix.ruby.experimental }}
23
30
  strategy:
24
31
  fail-fast: false
25
32
  max-parallel: 5
26
- matrix:
27
- ruby: [ '3.1', '3.0', '2.7' ]
28
- os: [ ubuntu-latest, windows-latest, macos-latest ]
29
- experimental: [ false ]
33
+ matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
34
+
30
35
  steps:
31
36
  - uses: actions/checkout@v3
32
37
  with:
@@ -34,8 +39,9 @@ jobs:
34
39
 
35
40
  - uses: ruby/setup-ruby@v1
36
41
  with:
37
- ruby-version: ${{ matrix.ruby }}
42
+ ruby-version: ${{ matrix.ruby.version }}
38
43
  bundler-cache: true
44
+ rubygems: ${{ matrix.ruby.rubygems }}
39
45
 
40
46
  - uses: actions/download-artifact@v3
41
47
  with:
@@ -5,6 +5,9 @@ on:
5
5
  types: [ metanorma/mnconvert ]
6
6
 
7
7
  jobs:
8
+ prepare:
9
+ uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
10
+
8
11
  prepare-ieee:
9
12
  uses: ./.github/workflows/prepare.yml
10
13
  secrets:
@@ -13,12 +16,17 @@ jobs:
13
16
  tag_repo:
14
17
  runs-on: ubuntu-latest
15
18
  if: startsWith(github.event.client_payload.ref, 'refs/tags/v')
16
- needs: [ prepare-ieee ]
19
+ needs: [ prepare, prepare-ieee ]
17
20
  steps:
18
21
  - uses: actions/checkout@v3
19
22
  with:
20
23
  token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
21
24
 
25
+ - uses: actions/download-artifact@v3
26
+ with:
27
+ name: ieee-test-input
28
+ path: ieee
29
+
22
30
  - run: |
23
31
  git config --global user.name "metanorma-ci"
24
32
  git config --global user.email "metanorma-ci@users.noreply.github.com"
@@ -29,23 +37,16 @@ jobs:
29
37
 
30
38
  - uses: ruby/setup-ruby@v1
31
39
  with:
32
- ruby-version: '2.7'
40
+ ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
33
41
  bundler-cache: true
34
42
 
35
- - run: gem install gem-release
43
+ - run: rm -f bin/mnconvert.jar
36
44
 
37
- - run: gem bump --version ${mnconvert_VERSION} --no-commit
45
+ - run: bundle exec rake
38
46
 
39
47
  - run: |
40
- rm -f bin/mnconvert.jar
41
- bundle exec rake bin/mnconvert.jar
42
-
43
- - uses: actions/download-artifact@v3
44
- with:
45
- name: ieee-test-input
46
- path: ieee
47
-
48
- - run: bundle exec rake
48
+ gem install gem-release
49
+ gem bump --version ${mnconvert_VERSION} --no-commit
49
50
 
50
51
  - name: Push commit and tag
51
52
  run: |
@@ -53,3 +54,12 @@ jobs:
53
54
  git commit -m "Bump version to ${mnconvert_VERSION}"
54
55
  git tag v${mnconvert_VERSION}
55
56
  git push origin HEAD:${GITHUB_REF} --tags
57
+
58
+ - if: failure()
59
+ uses: JasonEtco/create-an-issue@v2
60
+ env:
61
+ GITHUB_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
62
+ with:
63
+ assignees: CAMOBAP
64
+ update_existing: true
65
+ search_existing: all
@@ -13,6 +13,9 @@ on:
13
13
  default: 'skip'
14
14
 
15
15
  jobs:
16
+ prepare:
17
+ uses: metanorma/ci/.github/workflows/prepare-rake.yml@main
18
+
16
19
  prepare-ieee:
17
20
  uses: ./.github/workflows/prepare.yml
18
21
  secrets:
@@ -20,13 +23,17 @@ jobs:
20
23
 
21
24
  release:
22
25
  runs-on: ubuntu-latest
23
- needs: [ prepare-ieee ]
26
+ needs: [ prepare, prepare-ieee ]
24
27
  steps:
25
28
  - uses: actions/checkout@v3
26
29
 
30
+ - run: |
31
+ git config user.name "metanorma-ci"
32
+ git config user.email "metanorma-ci@users.noreply.github.com"
33
+
27
34
  - uses: ruby/setup-ruby@v1
28
35
  with:
29
- ruby-version: '3.1'
36
+ ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
30
37
  bundler-cache: true
31
38
 
32
39
  - uses: actions/download-artifact@v3
@@ -38,8 +45,6 @@ jobs:
38
45
 
39
46
  - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
40
47
  run: |
41
- git config --global user.name "metanorma-ci"
42
- git config --global user.email "metanorma-ci@users.noreply.github.com"
43
48
  gem bump --version ${{ inputs.next_version }} --no-commit
44
49
  rm -f bin/mnconvert.jar
45
50
  bundle exec rake bin/mnconvert.jar
@@ -53,16 +58,7 @@ jobs:
53
58
  git tag v${mnconvert_VERSION}
54
59
  git push origin HEAD:${GITHUB_REF} --tags
55
60
 
56
- - name: publish to rubygems.org
57
- env:
58
- RUBYGEMS_API_KEY: ${{secrets.METANORMA_CI_RUBYGEMS_API_KEY}}
59
- run: |
60
- mkdir -p ~/.gem
61
- touch ~/.gem/credentials
62
- cat > ~/.gem/credentials << EOF
63
- ---
64
- :rubygems_api_key: ${RUBYGEMS_API_KEY}
65
- EOF
66
- chmod 0600 ~/.gem/credentials
67
- git status
68
- gem release
61
+ - uses: actions-mn/gem-release@main
62
+ with:
63
+ api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
64
+ release-command: gem release
@@ -1,4 +1,4 @@
1
1
  module MnConvert
2
- VERSION = "1.41.0"
2
+ VERSION = "1.42.0"
3
3
  MNCONVERT_JAR_VERSION = VERSION
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mnconvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-18 00:00:00.000000000 Z
11
+ date: 2023-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mnconvert converts Metanorma XML into NISO STS XML.