generated from nginxinc/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release runs only on version tags created on main
- typo correction - Add job to find current branch - Add better act documentation and support
- Loading branch information
Showing
5 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Act events | ||
|
||
This project uses [act](https://github.com/nektos/act) to help test GitHub Actions locally. This directory contains act event definitions. | ||
|
||
## Requirements | ||
|
||
- [act](https://github.com/nektos/act), this guide assumes you have installed act as a [GitHub CLI extension](https://github.com/nektos/act#installation-as-github-cli-extension). | ||
- [Docker](https://www.docker.com/) | ||
|
||
## Running act | ||
|
||
The following commands can be run to exercise the GitHub Actions locally. | ||
|
||
Will pass the `main` conditional and run the `build-and-sign-image` job. | ||
|
||
```bash | ||
gh act -W .github/workflows/build-and-sign-image.yml -e .github/workflows/.act/push-event-valid.json | ||
``` | ||
|
||
Will fail the `main` conditional and not run the `build-and-sign-image` job. | ||
|
||
```bash | ||
gh act -W .github/workflows/build-and-sign-image.yml -e .github/workflows/.act/push-event-invalid.json | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ref": "refs/tags/v200.3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ref": "refs/tags/v0.3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
- * | ||
|
||
- '*' | ||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|