mirror of
https://github.com/tj-actions/changed-files
synced 2025-06-29 16:22:56 +02:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Tonye Jack <jtonye@ymail.com>
50 lines
1.9 KiB
YAML
50 lines
1.9 KiB
YAML
name: Update release version
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
|
|
jobs:
|
|
update-version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Run release-tagger
|
|
uses: tj-actions/release-tagger@1a9264b0fd99a1ef92c4fd2f077f292900cc79b6 # v4.0.0
|
|
- name: Sync release version.
|
|
uses: tj-actions/sync-release-version@2a7ef0deb39b3ecce887ee99d2261c6cef989d84 # v13.16
|
|
id: sync-release-version
|
|
with:
|
|
pattern: '${{ github.repository }}@'
|
|
only_major: true
|
|
use_tag_commit_hash: true
|
|
paths: |
|
|
README.md
|
|
- name: Sync release package version.
|
|
uses: tj-actions/sync-release-version@2a7ef0deb39b3ecce887ee99d2261c6cef989d84 # v13.16
|
|
id: sync-release-package-version
|
|
with:
|
|
pattern: '"version": "'
|
|
strip_prefix: "v"
|
|
paths: |
|
|
package.json
|
|
- name: Run git-cliff
|
|
uses: tj-actions/git-cliff@75599f745633e29f99bd9e14a30865b7d2fcbe84 # v1.5.0
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
with:
|
|
base: "main"
|
|
labels: "merge when passing"
|
|
sign-commits: true
|
|
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
|
|
branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
|
|
commit-message: "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
|
|
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.sync-release-version.outputs.old_version }}...${{ steps.sync-release-version.outputs.new_version }})"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|