v0.11.4 #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Offline Changelog | |
on: | |
release: | |
types: | |
- published | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
chanagelog-pr: | |
permissions: | |
contents: write # for peter-evans/create-pull-request to create branch | |
pull-requests: write # for peter-evans/create-pull-request to create a PR | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@394d78e5b40cc35c170eb909b1f81551f37feb05 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@8b5e8b768746b50394015010d25e690bfab9dfbc | |
with: | |
fetch-depth: 0 | |
- uses: heinrichreimer/github-changelog-generator-action@6653241a44afb59146f719f322005de49a5c3b38 | |
with: | |
token: ${{ secrets.CR_TOKEN }} | |
project: k8gb | |
output: CHANGELOG-latest.md | |
pullRequests: true | |
author: true | |
issues: true | |
issuesWoLabels: true | |
prWoLabels: true | |
onlyLastTag: true | |
compareLink: true | |
filterByMilestone: true | |
unreleased: false | |
- name: Prepend the latest changes to CHANGELOG.md | |
run: | | |
mv CHANGELOG.md CHANGELOG-old.md | |
cat CHANGELOG-latest.md | sed -e'$d' > CHANGELOG.md | |
cat CHANGELOG-old.md | sed -e'1,2d' >> CHANGELOG.md | |
rm CHANGELOG-old.md CHANGELOG-latest.md | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@0cd7ff0e63a08ac27378fc70cf0df976be6bbbfa | |
with: | |
title: "Update Offline Changelog" | |
branch: offline_changelog | |
delete-branch: true | |
base: master | |
signoff: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Send http get to doc.crds.dev to index a new version | |
run: | | |
curl -sL https://doc.crds.dev/github.com/k8gb-io/k8gb@${{ github.event.release.tag_name }} | grep -A2 'class="container"' |