Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Releases: aaimio/get-persistent-value

v1.2.1

17 Apr 17:13
Compare
Choose a tag to compare

v1.2.0

17 Apr 16:30
Compare
Choose a tag to compare
  • Bumps node version to 16

v1.1.3

29 May 03:42
Compare
Choose a tag to compare
  • Update dependencies

v1.1.2

16 Jan 12:18
Compare
Choose a tag to compare
  • Fix vulnerable dependency

v1.1.1

01 Jan 05:16
5141bbe
Compare
Choose a tag to compare

API

  • If a key could not be found, rather than returning a 422 Unprocessable Entity, a 404 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

29 Dec 10:04
Compare
Choose a tag to compare
  • Upgrades dependencies to latest versions
  • Remove node-fetch in favour of axios

v1

20 Apr 13:56
Compare
Choose a tag to compare
chore: rename unique_key to access_token