mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
ci: update release-please-action to v4 (#429)
This commit is contained in:
parent
4e3f89aed3
commit
1e6e3a04e3
3 changed files with 30 additions and 23 deletions
15
.github/release-please-config.json
vendored
Normal file
15
.github/release-please-config.json
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
||||||
|
"bootstrap-sha": "359539fdd65b3a8849f7ea783cddc700c399c78c",
|
||||||
|
"include-component-in-tag": false,
|
||||||
|
"include-v-in-tag": false,
|
||||||
|
"draft-pull-request": true,
|
||||||
|
"packages": {
|
||||||
|
".": {
|
||||||
|
"release-type": "simple",
|
||||||
|
"package-name": "hetzner.hcloud",
|
||||||
|
"changelog-path": "changelogs/dev-changelog.md",
|
||||||
|
"extra-files": ["galaxy.yml", "plugins/module_utils/version.py"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
.github/release-please-manifest.json
vendored
Normal file
1
.github/release-please-manifest.json
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{".":"2.4.1"}
|
37
.github/workflows/release-please.yml
vendored
37
.github/workflows/release-please.yml
vendored
|
@ -1,9 +1,8 @@
|
||||||
|
name: Release-please
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
|
|
||||||
name: release-please
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
@ -11,31 +10,17 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-please:
|
release-please:
|
||||||
# The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks.
|
# Do not run on forks.
|
||||||
if: github.repository == 'ansible-collections/hetzner.hcloud'
|
if: github.repository == 'ansible-collections/hetzner.hcloud'
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
pr-updated: ${{ steps.outputs.outputs.pr-updated }}
|
|
||||||
branch: ${{ steps.outputs.outputs.branch }}
|
|
||||||
version: ${{ steps.outputs.outputs.version }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: release
|
- id: release
|
||||||
uses: google-github-actions/release-please-action@v3
|
uses: google-github-actions/release-please-action@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
|
token: ${{ secrets.HCLOUD_BOT_TOKEN }}
|
||||||
release-type: simple
|
config-file: .github/release-please-config.json
|
||||||
package-name: hetzner.hcloud
|
manifest-file: .github/release-please-manifest.json
|
||||||
include-v-in-tag: false
|
|
||||||
draft-pull-request: true
|
|
||||||
|
|
||||||
# We use antsibull-changelog for the actual user-facing changelog.
|
|
||||||
changelog-path: changelogs/dev-changelog.md
|
|
||||||
|
|
||||||
extra-files: |
|
|
||||||
galaxy.yml
|
|
||||||
plugins/module_utils/version.py
|
|
||||||
|
|
||||||
- name: Prepare outputs
|
- name: Prepare outputs
|
||||||
id: outputs
|
id: outputs
|
||||||
|
@ -45,10 +30,16 @@ jobs:
|
||||||
echo "branch=${{ fromJSON(steps.release.outputs.pr).headBranchName }}" >> "$GITHUB_OUTPUT"
|
echo "branch=${{ fromJSON(steps.release.outputs.pr).headBranchName }}" >> "$GITHUB_OUTPUT"
|
||||||
echo "version=$(echo "${{ fromJSON(steps.release.outputs.pr).title }}" | awk '{print $3}')" >> "$GITHUB_OUTPUT"
|
echo "version=$(echo "${{ fromJSON(steps.release.outputs.pr).title }}" | awk '{print $3}')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
pr-updated: ${{ steps.outputs.outputs.pr-updated }}
|
||||||
|
branch: ${{ steps.outputs.outputs.branch }}
|
||||||
|
version: ${{ steps.outputs.outputs.version }}
|
||||||
|
|
||||||
antsibull-changelog:
|
antsibull-changelog:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [release-please]
|
needs: [release-please]
|
||||||
if: needs.release-please.outputs.pr-updated
|
if: needs.release-please.outputs.pr-updated
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
|
|
Loading…
Reference in a new issue