https://github.com/codeinwp/action-store-release
Internal GitHub Action for VertigoStudio products to send release notes to store
https://github.com/codeinwp/action-store-release
Last synced: 11 months ago
JSON representation
Internal GitHub Action for VertigoStudio products to send release notes to store
- Host: GitHub
- URL: https://github.com/codeinwp/action-store-release
- Owner: Codeinwp
- License: gpl-3.0
- Created: 2021-05-05T09:42:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-02T09:32:23.000Z (about 1 year ago)
- Last Synced: 2025-02-16T09:27:59.489Z (11 months ago)
- Language: JavaScript
- Size: 217 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Action to send release notes to store
Internal GitHub Action for VertigoStudio products to send release notes to store
## Inputs
### `strip_first_lines`
**Required** Strip first X lines from commit message. Default `4`.
### `no_notes`
**Required** Avoid sending notes from the commit message. Default `false`.
## Required Environment Variables
`PRODUCT_ID` - Product Store id
`AUTH_TOKEN` - Store Authorization token
`STORE_URL` - Store URL
`BUILD_VERSION` - Product new version
`GITHUB_TOKEN` - Github Authorization token
## Example usage
uses: Codeinwp/action-store-release@main
with:
strip_first_lines: '4'
## Contributing
#### Requirements
* [act](https://github.com/nektos/act) local runner
* [GH](https://github.com/cli/cli) cli
* [@vercel/ncc](https://github.com/vercel/ncc) as globaly installed package ( `npm i -g @vercel/ncc` )
#### How to test
`act push -j testing ` will run the action using act
For building the dist file, you can use `ncc build index.js --license licenses.txt` or `ncc build index.js --license licenses.txt -w` for watch mode
To simulate a particular event locally you will need an event payload for the type of the event which you are listing. To do this you can use `gh` cli to export API responses
I.e
`gh api /repos/Codeinwp/neve/commits/c3f567031131555dbb38a010d38f01ffa518ca07 >> dev/event.json`
and then use act to test on that event, i.e:
`act push -j testing -e dev/event.json`