Skip to content

Github Action to set a REVISION environment variabel based on current branch

Notifications You must be signed in to change notification settings

digipost/set-revision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set Revision javascript action

This action uses the github reference of the caller context, and returns the desired Maven Revision property according to our specification. This property is also exported in the Github Environment as REVISION. Our specification, in short, is as follows:

  • Tags remain unchanged
  • Non-tags are appended with a -SNAPSHOT suffix

Inputs

None

Outputs

revision

The appropriate revision value. This value is also exported in the Github Environment as REVISION.

Example usage

uses: digipost/[email protected]

Building this project

Make desired changes in index.js (and/or other files). Then run

ncc build index.js

to generate the dist/index.js file

Links

About

Github Action to set a REVISION environment variabel based on current branch

Resources

Stars

Watchers

Forks

Packages

No packages published