Action to set a repository variable.
uses: action-pack/set-variable@v1
with:
name: 'MY_VARIABLE'
value: 'Lorem ipsun dolor simit'
token: ${{ secrets.REPO_ACCESS_TOKEN }}
Required String
Variable name.
Required String
Value to store.
Required String
Repository Access token
Optional String
Owners name.
Optional String
Repository name.
Optional Boolean
Indicates the repo is an organization.
-
This will happen if you use
secrets.GITHUB_TOKEN
.You need to create a personal access token instead.
Go to your Github settings, select 'Developer settings' --> 'Personal access tokens' --> 'Tokens (classic)' and create a new token. Store its value in a secret, for example
MY_TOKEN
.Then refer to it like this:
token: ${{ secrets.MY_TOKEN }}