Skip to content

feat: exclude v

feat: exclude v #24

name: Release Drafter
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
# Drafts your next Release notes as Pull Requests are merged into "master"
- name: Checkout Code
uses: actions/checkout@v4
# - name: Read ChangeLog
# id: changelog
# uses: juliangruber/read-file-action@v1
# with:
# path: ./CHANGELOG.md
# - name: Echo ChangeLog
# run: echo "${{ steps.changelog.outputs.content }}"
- name: Echo pwd
run: pwd
- name: Echo ls
run: ls
- name: Read ChangeLog
id: changelog
uses: BinPar/[email protected]
with:
changelog-path: ./CHANGELOG.md
version: 4.5.8
- name: Echo ChangeLog
run: echo "${{ steps.changelog.outputs.version-changelog }}"
# - uses: release-drafter/release-drafter@v6
# # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: release-drafter-config.yml
# name: steps.changelog.inputs.version
# tag: steps.changelog.inputs.version
# # disable-autolabeler: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create/update release
uses: ncipollo/release-action@v1
with:
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object.
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
tag: 4.5.8
name: 4.5.8
body: ${{ steps.changelog.outputs.version-changelog }}
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}