forked from kubernetes-sigs/karpenter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed release_version and use github.ref_name in tag env
- Loading branch information
1 parent
009d757
commit 9f7808d
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
type: string | ||
required: true | ||
description: "GitHub release tag" | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
vexctl: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Set tag name | ||
shell: bash | ||
run: | | ||
TAG=${{ github.event.inputs.tag }} | ||
echo "TAG=$TAG" >> "$GITHUB_ENV" | ||
echo "TAG=${ github.ref_name }" >> "$GITHUB_ENV" | ||
- uses: openvex/generate-vex@31b415924ea0d72ed5f2640f1dee59dea6c2770b | ||
name: Run vexctl | ||
with: | ||
product: pkg:generic/karpenter@${{ env.RELEASE_VERSION }} | ||
product: pkg:generic/karpenter@${{ env.TAG }} | ||
file: /tmp/karpenter.vex.json | ||
- name: Upload openvex data | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release upload $TAG /tmp/karpenter.vex.json | ||
gh release upload ${{ env.TAG }} /tmp/karpenter.vex.json |