Skip to content

Commit

Permalink
Removed release_version and use github.ref_name in tag env
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeram-venkitesh committed Dec 27, 2023
1 parent 009d757 commit 9f7808d
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/openvex.yaml
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

0 comments on commit 9f7808d

Please sign in to comment.