Files
version_tag/action.yaml
Bryce Thorup 5aeac43c32 testing
2023-12-15 06:03:51 -07:00

17 lines
575 B
YAML

name: versioned-release
description: "Creates a version tag when the 'version' value in 'package.json' has changed and a tag with the version number does not already exist."
author: "Bryce Thorup"
inputs:
server_url:
description: The git repository URL
required: true
runs:
using: composite
steps:
- run: Get jq
shell: apt update && apt install jq -y
- run: Get version from package.json
shell: export CURRENT_VERSION=$(jq -r .version package.json)
- run: Get tagged versions from git
shell: export PREVIOUS_VERSIONS=$(git tag -l)