diff --git a/README.md b/README.md index f9eb75a..4c03395 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,9 @@ authenticated without any extra setup: - run: tessl publish ``` +The token is exported to later workflow steps as both `TESSL_TOKEN` and +`TESSL_API_TOKEN` for compatibility with Tessl CLI integrations. + ## Examples ### Review a skill on pull request diff --git a/action.yml b/action.yml index 181c5d9..2d97190 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: required: false default: "latest" token: - description: Tessl API token for authentication. When set, exported as TESSL_TOKEN for all subsequent steps. + description: Tessl API token for authentication. When set, exported as TESSL_TOKEN and TESSL_API_TOKEN for all subsequent steps. required: false outputs: @@ -109,3 +109,4 @@ runs: run: | echo "::add-mask::${TESSL_TOKEN}" echo "TESSL_TOKEN=${TESSL_TOKEN}" >> "$GITHUB_ENV" + echo "TESSL_API_TOKEN=${TESSL_TOKEN}" >> "$GITHUB_ENV"