Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update README #80

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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