Improvements to changesets versioning #7
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: Add changeset to renovate created PRs | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
add_changeset: | |
runs-on: ubuntu-latest | |
name: Add changeset | |
permissions: | |
contents: write | |
steps: | |
- name: checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Add renovate changeset | |
id: add_renovate_changeset | |
uses: OctopusDeploy/util-actions/[email protected] | |
with: | |
type: patch | |
summary: ${{ github.event.pull_request.title }} | |
ignore: | | |
**/node_modules/**/* | |
- name: Print changeset contents | |
run: cat ${{ steps.add_renovate_changeset.outputs.changesetPath }} | |
- name: Commit & Push changes | |
uses: actions-js/[email protected] | |
with: | |
branch: ${{ github.head_ref }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} |