From f6d9bea15188c27a6ce37fb4d587bcaf145434ef Mon Sep 17 00:00:00 2001 From: Luis Rosales Date: Thu, 31 Aug 2023 16:40:56 +0200 Subject: [PATCH] fix: add missing env variable to be able to use gh cli --- .github/workflows/build-and-push-assets.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-and-push-assets.yml b/.github/workflows/build-and-push-assets.yml index 2442cb3a4..1b392053f 100644 --- a/.github/workflows/build-and-push-assets.yml +++ b/.github/workflows/build-and-push-assets.yml @@ -74,6 +74,9 @@ on: GITHUB_USER_EMAIL: description: Email address for the GitHub user configuration. required: true + GITHUB_TOKEN: + description: The token to be used to interact with GH Cli. + required: true GITHUB_USER_NAME: description: Username for the GitHub user configuration. required: true @@ -225,6 +228,8 @@ jobs: - name: Move tag if: ${{ github.ref_type == 'tag' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | echo "Preparation: Getting owner and repo name" echo "owner_repo=$(gh repo view --json url,owner,name --template '{{.owner.login}}/{{.name}}')" >> $GITHUB_ENV