mirror of
https://github.com/puppetlabs/vmpooler-provider-vsphere.git
synced 2026-01-26 11:28:40 -05:00
Fix another bad copy/paste in release action
This commit is contained in:
parent
956847ecfe
commit
e5aa4f9dfa
1 changed files with 18 additions and 5 deletions
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
|
|
@ -9,8 +9,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get Version
|
- name: Get Current Version
|
||||||
id: gv
|
uses: actions/github-script@v6
|
||||||
|
id: cv
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const { data: response } = await github.rest.repos.getLatestRelease({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
})
|
||||||
|
console.log(`The latest release is ${response.tag_name}`)
|
||||||
|
return response.tag_name
|
||||||
|
result-encoding: string
|
||||||
|
|
||||||
|
- name: Get Next Version
|
||||||
|
id: nv
|
||||||
run: |
|
run: |
|
||||||
version=$(grep VERSION lib/vmpooler-provider-vsphere/version.rb |rev |cut -d "'" -f2 |rev)
|
version=$(grep VERSION lib/vmpooler-provider-vsphere/version.rb |rev |cut -d "'" -f2 |rev)
|
||||||
echo "version=$version" >> $GITHUB_OUTPUT
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
@ -20,7 +33,7 @@ jobs:
|
||||||
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
||||||
with:
|
with:
|
||||||
args: >-
|
args: >-
|
||||||
--future-release ${{ steps.gv.outputs.version }}
|
--future-release ${{ steps.nv.outputs.version }}
|
||||||
env:
|
env:
|
||||||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
@ -42,7 +55,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
args: >-
|
args: >-
|
||||||
--since-tag ${{ steps.cv.outputs.result }}
|
--since-tag ${{ steps.cv.outputs.result }}
|
||||||
--future-release ${{ steps.gv.outputs.version }}
|
--future-release ${{ steps.nv.outputs.version }}
|
||||||
--output release-notes.md
|
--output release-notes.md
|
||||||
env:
|
env:
|
||||||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -50,7 +63,7 @@ jobs:
|
||||||
- name: Tag Release
|
- name: Tag Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.gv.outputs.version }}
|
tag: ${{ steps.nv.outputs.version }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
bodyfile: release-notes.md
|
bodyfile: release-notes.md
|
||||||
draft: false
|
draft: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue