You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,9 +100,20 @@ This action supports [debug logging](https://docs.github.com/en/actions/managing
100
100
101
101
## Inputs
102
102
103
+
### working-directory
104
+
Sets the working directory before all other steps occur. This is useful for cases where files like `.ruby-version` and `Gemfile` aren't located in the root directory. For example in a monorepo where the Ruby project is located in its own subfolder.
105
+
106
+
```yaml
107
+
name: Push Gem
108
+
uses: fac/ruby-gem-push-action@v1
109
+
with:
110
+
working-directory: './ruby_project/'
111
+
```
112
+
103
113
### gem-glob
104
114
105
115
File glob to match the gem file to push. The default `pkg/*.gem` picks up gems built using `bundle exec rake build`. You may need to set this if your your gem builds another way.
116
+
_Note_: `working-directory`is set before this step, therefore if both inputs are provided, this path will be relative to the `working-directory`.
Copy file name to clipboardExpand all lines: action.yml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ inputs:
18
18
tag:
19
19
description: After pushing a new gem version, git tag with the version string
20
20
default: true
21
+
working-directory:
22
+
description: "The working directory of the ruby project. Useful for cases where files like .ruby-version and Gemfile aren't located in the root directory."
23
+
required: false
24
+
default: "."
21
25
outputs:
22
26
pushed-version:
23
27
description: "The version of the gem pushed to the repository"
0 commit comments