Skip to content

Commit

Permalink
Minor enhancements to the action (#5)
Browse files Browse the repository at this point in the history
Minor enhancements to the action
  • Loading branch information
cicdguy authored Feb 23, 2022
1 parent 2fcc117 commit d9c35c0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/short-tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Keep the versions up-to-date ☕️

on:
release:
types: [published, edited]

jobs:
actions-tagger:
runs-on: ubuntu-latest
steps:
- uses: Actions-R-Us/actions-tagger@latest
with:
publish_latest_tag: true
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,7 @@ Insights Engineering

_Required_: `false`

_Default_: "0.0.5"

* `presidio-cli-version`:

_Description_: Presidio CLI version

_Required_: `false`

_Default_: "0.0.5"
_Default_: "latest"

* `lang-models`:

Expand Down
14 changes: 10 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
presidio-cli-version:
description: Presidio CLI version
required: false
default: "0.0.5"
default: "latest"
lang-models:
description: List of additional language models to install
required: false
Expand All @@ -55,9 +55,15 @@ runs:
key: ${{ runner.os }}-presidio-cli-${{ inputs.presidio-cli-version }}-main

- name: Install presidio-cli
uses: BSFishy/pip-action@v1
with:
packages: presidio-cli==${{ inputs.presidio-cli-version }}
run: |
if [ "${{ inputs.presidio-cli-version }}" == "latest" ]
then {
pip install --upgrade presidio-cli
} else {
pip install presidio-cli==${{ inputs.presidio-cli-version }}
}
fi
shell: bash

- name: Get branch names
id: branch-names
Expand Down

0 comments on commit d9c35c0

Please sign in to comment.