Skip to content

Set Repository Variable

Actions

About

Action to set a repository variable
v1.17
Latest
StarΒ (2)

Set Variable

Build Version Size

Action to set a repository variable.

Usage πŸš€

uses: action-pack/set-variable@v1
with:
  name: 'MY_VARIABLE'
  value: 'Lorem ipsun dolor simit'
  token: ${{ secrets.REPO_ACCESS_TOKEN }}

Inputs πŸ“

name

Required String Variable name.

value

Required String Value to store.

token

Required String Repository Access token

owner

Optional String Owners name.

repository

Optional String Repository name.

org

Optional Boolean Indicates the repo is an organization.

FAQ πŸ’¬

  • Why do I get the error 'Resource not accessible by integration'?

    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 }}

Stars 🌟

Stargazers

Set Repository Variable is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Action to set a repository variable
v1.17
Latest

Set Repository Variable is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.