File tree Expand file tree Collapse file tree 6 files changed +18
-17
lines changed Expand file tree Collapse file tree 6 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 11FROM ruby:3
22
3- RUN gem install parse_gemspec-cli
3+ RUN gem install parse_gemspec-cli \
4+ && apt-get update \
5+ && apt-get install -y jq
46
57COPY entrypoint.sh /entrypoint.sh
6-
7- ARG SPECFILE
8-
8+ RUN chmod +x /entrypoint.sh
99ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Fetches .gemspec metadata
22description : Reads the .gemspec file in the repo and exposes metadata from it
33
44inputs :
5- spec-file :
5+ specfile :
66 description : ' The path of the gem spec file'
77 required : true
88
@@ -20,6 +20,4 @@ outputs:
2020
2121runs :
2222 using : " docker"
23- image : " Dockerfile"
24- env :
25- SPEC_FILE : ${{ inputs.spec-file }}
23+ image : " Dockerfile"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- SPEC_DATA=$( parse-gemspec-cli $SPECFILE )
3+ SPEC_DATA=$( parse-gemspec-cli $INPUT_SPECFILE )
44
55echo " ::set-output name=name::$( echo $SPEC_DATA | jq -r ' .name' ) "
66echo " ::set-output name=description::$( echo $SPEC_DATA | jq -r ' .description' ) "
Original file line number Diff line number Diff line change 1010 - v2.x
1111
1212jobs :
13- test :
13+ build-branch :
1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
Original file line number Diff line number Diff line change 77 - 1.x
88
99jobs :
10- release :
10+ build-tag :
1111 runs-on : ubuntu-latest
12- if : # TODO new gem version detected: is current ruby version available as git tag already?
1312 steps :
14- - uses : actions/checkout@v2
13+ - name : 🎒 checkout repository
14+ uses : actions/checkout@v2
1515 - name : 💎 Extract gemspec info
1616 id : gemspec_fetch
1717 uses : ./.github/actions/gemspec-fetch
18- 18+ with :
19+ specfile : jekyll-dash.gemspec
20+ - name : 🕵️♂️ investigate if tag exists
21+ 1922 id : tag-check
2023 with :
2124 tag : ' v${{ steps.gemspec_fetch.outputs.version }}'
2225 env :
23- GITHUB_TOKEN : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
26+ GITHUB_TOKEN : ${{ secrets.GH_CREDENTIALS }}
2427 - name : 🔖Build tag
2528 if : ${{ !steps.checkTag.outputs.exists }}
2629 id : tag_version
2730 uses :
mathieudutour/[email protected] 2831 with :
29- github_token : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
32+ github_token : ${{ secrets.GH_CREDENTIALS }}
3033 default_bump : false
3134 custom_tag : ${{ steps.gemspec_fetch.outputs.version }}
3235 tag_prefix : v
Original file line number Diff line number Diff line change 77 - v2.*
88
99jobs :
10- release :
10+ release-gem :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments