Skip to content

Commit

Permalink
Merge pull request #29 from k2tzumi/bump-up-version-2023-11-14
Browse files Browse the repository at this point in the history
Bump up version
  • Loading branch information
k2tzumi authored Nov 14, 2023
2 parents 7652c0e + bc26cee commit cc2cf56
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
release-job:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
id: get-release-note
with:
result-encoding: string
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
tag: '${{ github.event.inputs.version }} --force'
tag_push: '--force'
- name: Create Release
uses: "actions/github-script@v6"
uses: actions/github-script@v7
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Enable concurrent execution. Default is `false`.
Enable `read:remote` scope. Default is `false`.
- `enable-run-exec-scope`
Enable `run:exec` scope. Default is `false`.

- `labels`
Specify a label to narrow down the target of execution. Multiple labels can be separated by commas.

See [action.yml](action.yml) and [runn README](https://github.com/k1LoW/runn) for more details on how to runbook it.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
version:
description: Specify runn version
required: false
default: 'v0.89.1'
default: 'v0.90.0'
debug:
description: Filter runbooks to be executed
required: false
Expand Down Expand Up @@ -52,7 +52,7 @@ inputs:
required: false
default: false
labels:
description: To filter execution targets, specify labels separated by commas.(For example, `foo,bar` would be `--label foo --label bar`)
description: To filter execution targets, specify labels separated by commas.(For example, `foo,bar` would be `--label "foo,bar"`)
required: false

runs:
Expand All @@ -79,9 +79,9 @@ runs:
shell: 'bash'
run: |
if [ -n "${{ inputs.labels }}" ]; then
LABELS=$(echo "${{ inputs.labels }}" | sed "s/,/ --label /g")
LABEL_OPTIONS="${LABELS[@]/#/--label }"
LABEL_OPTIONS="--label \"${{ inputs.labels }}\""
fi
echo "label options: $LABEL_OPTIONS"
runn \
${{ inputs.command }} \
${{ inputs.path_pattern }} \
Expand Down

0 comments on commit cc2cf56

Please sign in to comment.