-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from JarvusInnovations/releases/github-actions…
…/release-prepare/r5 fix: only match open PRs
- Loading branch information
Showing
4 changed files
with
37 additions
and
6 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,4 @@ | ||
GITHUB_TOKEN=PASTE_YOUR_TOKEN | ||
GITHUB_REPOSITORY=exampleorg/exampleproject | ||
RELEASE_BRANCH=main | ||
GITHUB_REF_NAME=develop |
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 @@ | ||
.env |
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,19 @@ | ||
# GitHub Action: release-prepare | ||
|
||
## Development | ||
|
||
This action encapsulates most of its complexity in a standalone Bash script that accepts environment variables, making it easy to test locally with the help of a `.env` file you can point at a test repository. | ||
|
||
1. Create `.env` from the template: | ||
|
||
```bash | ||
cp .env.example .env | ||
``` | ||
|
||
2. Paste a GitHub token and tailor repository/branches to your test target. | ||
|
||
3. Run bash script with `.env` applied to emulate GitHub Actions context: | ||
|
||
```bash | ||
eval $(< .env) ./pull-request.sh | ||
``` |
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