Skip to content

Commit

Permalink
fix(gha): update the update repository env variable step command
Browse files Browse the repository at this point in the history
Signed-off-by: kaanyagci <kaan.yagci@makepad.fr>
  • Loading branch information
kaanyagci committed Aug 11, 2024
1 parent 6de7cae commit c364422
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/get_latest_skaffold_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
- name: Update repository environment variable
run: |
echo "VERSION=$VERSION"
gh api -X PUT "/repos/${{ github.repository }}/actions/variables/VERSION" -f name=VERSION -f value="$VERSION"
gh api \
--method PUT \
-H "Accept: application/vnd.github+json" \
"/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/variables/VERSION" \
-f name=VERSION -f value="$VERSION"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c364422

Please sign in to comment.