Skip to content

v0.11.2

v0.11.2 #16

Workflow file for this run

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-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@6dacdfc16caa5ebd987908a44ab5b425193385f6
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
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@5848fcb314c4b57117ece59f6df6f225122550c4
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"'