Skip to content

Commit f028745

Browse files
authored
Persist CPLN token for cpflow steps (#738)
1 parent 2e0ec73 commit f028745

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • .github/actions/cpflow-setup-environment

.github/actions/cpflow-setup-environment/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ runs:
9696
exit 1
9797
fi
9898
99+
# Keep the service-account token available to later cpflow/cpln steps.
100+
# The profile stores org/default metadata, but cpflow direct API calls
101+
# read CPLN_TOKEN before falling back to `cpln profile token`.
102+
echo "::add-mask::${CPLN_TOKEN}"
103+
printf 'CPLN_TOKEN=%s\n' "${CPLN_TOKEN}" >> "${GITHUB_ENV}"
104+
99105
# `cpln profile update` lists `create` as an alias (cpln profile --help) and is
100106
# idempotent: it creates the profile if missing and updates it otherwise. Calling
101107
# update directly avoids parsing the CLI's "already exists" English error text,

0 commit comments

Comments
 (0)