Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
use plugin version in release
Browse files Browse the repository at this point in the history
  • Loading branch information
eh-am committed Dec 20, 2021
1 parent 29efc40 commit efbf659
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,25 @@ jobs:
awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
echo "::set-output name=path::release_notes.md"
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/v${{ steps.metadata.outputs.plugin-version }}',
sha: context.sha
})
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: 'v${{ steps.metadata.outputs.plugin-version }}'
release_name: Release ${{ steps.metadata.outputs.plugin-version }}
body_path: ${{ steps.changelog.outputs.path }}
draft: true

Expand Down

0 comments on commit efbf659

Please sign in to comment.