Skip to content

Commit

Permalink
Merge pull request #83 from stakater/feature/add-tekton-workflows
Browse files Browse the repository at this point in the history
fix PR tag is semver compatible for tekton task
  • Loading branch information
rasheedamir authored Dec 20, 2023
2 parents 1a37203 + 1cbb9a6 commit eafe6e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_tekton.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
- name: Generate Tag
id: generate_tag
run: |
sha=${{ github.event.pull_request.head.sha }}
tag="snapshot-pr-${{ github.event.pull_request.number }}-${sha:0:8}"
echo "GIT_TAG=$(echo ${tag})" >> $GITHUB_OUTPUT
version="$(git describe --tags --abbrev=0)"
number="pr${{ github.event.pull_request.number }}"
echo "GIT_TAG=$(echo ${version}-${number})" >> $GITHUB_OUTPUT
# Set up helm binary
- name: Set up Helm
Expand Down

0 comments on commit eafe6e2

Please sign in to comment.