JS action to extract PR data. Useful for end-to-end test where we need to have link to pr-deploy and tags for selected test run.
Made with ncc and debugged with act.
For proper develop and maintaining you will need to install two things: one for bundling action into single executable, another - for local debug (if you want to debug action locally of course):
- nodejs - please, use 16.x version since action internally use this version (available for custom JS actions: 12.x and 16.x)
- ncc - for bundling into into single executable file wit all node_modules
- act - for debugging this action from other workflows where it used.
Develop flow:
- You switch to node 16.x version
- You make some changes in
index.mjs
file - You compile it with command
ncc build index.mjs --license licenses.txt
- Commit and push
- Update action's label
- (optional) You use
act
to see how action works in some external workflows
You will need to pass three variables:
- access token
- PR number (if we use
on.pull_request
event -github.event.number
) - repository (
github.repository
)