This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
Releases: aaimio/get-persistent-value
Releases · aaimio/get-persistent-value
v1.2.1
Use correct exports
v1.2.0
- Bumps node version to 16
v1.1.3
- Update dependencies
v1.1.2
- Fix vulnerable dependency
v1.1.1
API
- If a key could not be found, rather than returning a
422 Unprocessable Entity
, a404 Not Found
status is returned with updated message:The specified key does not exist
(thanks to @dwene). - If an access token isn't specified, a
403 Forbidden
is returned with message:The specified access token is empty
Action
Adds a new input called default
, this value will be returned if the API returns a 404. For example:
on: workflow_dispatch
jobs:
get_persistent_value_job:
runs-on: ubuntu-latest
name: Get a persistent value
steps:
- name: Get a persistent value
id: get_persistent_value_step
uses: aaimio/get-persistent-value@master
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
key: some_non_existent_key
default: "some_default_value"
- name: Return a persistent value
run: echo "The returned value is '${{ steps.get_persistent_value_step.outputs.value }}'"
Above would output The returned value is 'some_default_value'
v1.1.0
- Upgrades dependencies to latest versions
- Remove
node-fetch
in favour ofaxios
v1
chore: rename unique_key to access_token