File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 37
37
ruby-version : " 3.1"
38
38
bundler-cache : true
39
39
40
+ - name : Install RubyGems
41
+ run : bundle install --gemfile=$GITHUB_ACTION_PATH/Gemfile
42
+ shell : sh
43
+ env :
44
+ GITHUB_ACTION_PATH : ${{ github.action_path }}
45
+
40
46
- id : get-added-files
41
47
name : Get added files
42
48
run : echo "::set-output name=files::$(git diff --name-only --diff-filter=A ${{ github.event.before }} ${{ github.sha }} | egrep "^${{ inputs.dir }}/" | xargs)"
@@ -53,11 +59,12 @@ runs:
53
59
shell : sh
54
60
55
61
- name : Publish to Qiita
56
- run : ruby main.rb
62
+ run : ruby $GITHUB_ACTION_PATH/ main.rb
57
63
shell : sh
58
64
env :
59
65
QIITA_ACCESS_TOKEN : ${{ inputs.qiita_access_token }}
60
66
MAPPING_FILEPATH : ${{ inputs.mapping_filepath }}
67
+ GITHUB_ACTION_PATH : ${{ github.action_path }}
61
68
ADDED_FILES : ${{ steps.get-added-files.outputs.files }}
62
69
MODIFIED_FILES : ${{ steps.get-modified-files.outputs.files }}
63
70
DELETED_FILES : ${{ steps.get-deleted-files.outputs.files }}
You can’t perform that action at this time.
0 commit comments