Skip to content

Bowery-RES/action-extract-pr-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-extract-pr-data

Table of Contents

About

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.

Getting Started

Prerequisites

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):

  1. nodejs - please, use 16.x version since action internally use this version (available for custom JS actions: 12.x and 16.x)
  2. ncc - for bundling into into single executable file wit all node_modules
  3. act - for debugging this action from other workflows where it used.

Develop flow:

  1. You switch to node 16.x version
  2. You make some changes in index.mjs file
  3. You compile it with command
ncc build index.mjs --license licenses.txt 
  1. Commit and push
  2. Update action's label
  3. (optional) You use act to see how action works in some external workflows

Usage

You will need to pass three variables:

  • access token
  • PR number (if we use on.pull_request event - github.event.number)
  • repository (github.repository)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published