Skip to content

Commit

Permalink
Merge pull request #80 from srz-zumix/feature/update_readme_2
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
srz-zumix authored Apr 21, 2023
2 parents 5a514d5 + 74e289f commit a8cdc3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: git name-rev --name-only HEAD
- uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
EXTENSION_NAME=act

help: ## Display this help screen
@grep -E '^[a-zA-Z][a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed -e 's/^GNUmakefile://' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

install: ## install gh extention
gh extension remove act || :
gh extension remove "${EXTENSION_NAME}" || :
gh extension install .


install-released:
gh extension remove act || :
gh extension install srz-zumix/gh-act
gh extension remove "${EXTENSION_NAME}" || :
gh extension install "srz-zumix/${EXTENSION_NAME}"

act_value_opts:
@act --help | grep -o -e "-.*\s*string\w*\s" | sed -e "s/,/|/g" -e "s/string.*/) shift ;;/g"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ gh-act generates and configures event.json for [nektos/act][]

## Installation

> gh extension install srz-zumix/gh-act
```sh
gh extension install srz-zumix/gh-act
```

## Usage

```sh
$ gh act pull_request
gh act pull_request
```

Create event.json in a temporary file, add it to the options of act and execute

```sh
$ gh act pull_request -e pull_request.json
gh act pull_request -e pull_request.json
```

gh-act does nothing if exist pull_request.json file.
Expand Down

0 comments on commit a8cdc3a

Please sign in to comment.