Skip to content

Commit 855e859

Browse files
committed
🐛 more fixes
1 parent aad696f commit 855e859

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM 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

57
COPY entrypoint.sh /entrypoint.sh
6-
7-
ARG SPECFILE
8-
8+
RUN chmod +x /entrypoint.sh
99
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/gemspec-fetch/action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Fetches .gemspec metadata
22
description: Reads the .gemspec file in the repo and exposes metadata from it
33

44
inputs:
5-
spec-file:
5+
specfile:
66
description: 'The path of the gem spec file'
77
required: true
88

@@ -20,6 +20,4 @@ outputs:
2020

2121
runs:
2222
using: "docker"
23-
image: "Dockerfile"
24-
env:
25-
SPEC_FILE: ${{ inputs.spec-file }}
23+
image: "Dockerfile"

.github/actions/gemspec-fetch/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SPEC_DATA=$(parse-gemspec-cli $SPECFILE)
3+
SPEC_DATA=$(parse-gemspec-cli $INPUT_SPECFILE)
44

55
echo "::set-output name=name::$(echo $SPEC_DATA | jq -r '.name')"
66
echo "::set-output name=description::$(echo $SPEC_DATA | jq -r '.description')"

.github/workflows/build-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- v2.x
1111

1212
jobs:
13-
test:
13+
build-branch:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:

.github/workflows/build-tag.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ on:
77
- 1.x
88

99
jobs:
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-
- uses: mukunku/[email protected]
18+
with:
19+
specfile: jekyll-dash.gemspec
20+
- name: 🕵️‍♂️ investigate if tag exists
21+
uses: mukunku/[email protected]
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

.github/workflows/release-gem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- v2.*
88

99
jobs:
10-
release:
10+
release-gem:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)