Skip to content

Commit

Permalink
fix(gha): change the last step to handle it as secret
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 c364422 commit 101053e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/get_latest_skaffold_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ jobs:
- name: Check gh CLI version
run: gh --version

- name: Update repository environment variable
- name: Authenticate GitHub CLI
run: gh auth login --with-token <<< ${{ secrets.GITHUB_TOKEN }}

- name: Update GitHub Secret
run: |
echo "VERSION=$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 }}
gh secret set SKAFFOLD_YAML_LATEST_VERSION --body "$VERSION"

0 comments on commit 101053e

Please sign in to comment.