Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use github.ref_name to get short tag name #18

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update released plugin version in plugin.yaml
run: yq -i -y '.version |= ("${{ github.ref }}" | sub("^v";""))' plugin.yaml
run: yq -i -y '.version |= ("${{ github.ref_name }}" | sub("^v";""))' plugin.yaml

# Use the REST API to update plugin.yaml, so we get automatic commit signing.
- name: Commit changes to plugin.yaml via REST API
Expand All @@ -42,7 +42,7 @@ jobs:
FILE_TO_COMMIT: plugin.yaml
DESTINATION_BRANCH: main
run: |
export MESSAGE="build: Update plugin.yaml to version ${{ github.ref }}"
export MESSAGE="build: Update plugin.yaml to version ${{ github.ref_name }}"
export SHA="$( git rev-parse ${DESTINATION_BRANCH}:${FILE_TO_COMMIT} )""
export CONTENT="$( base64 -i ${FILE_TO_COMMIT} )"
gh api --method PUT /repos/:owner/:repo/contents/${FILE_TO_COMMIT} \
Expand Down