Changelog script fix after renaming the repo #3
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: test to generate changelog | |
# runs on | |
# * manual trigger | |
on: | |
workflow_dispatch: | |
pull_request: | |
# global env vars, available in all jobs and steps | |
env: | |
MAVEN_OPTS: '-Xmx4g' | |
jobs: | |
# creates a PR for bumping the versions to the next snapshot | |
# only executed if we have created the new release | |
create-pr: | |
name: Version upgrade PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: maven | |
- name: Generate changelog | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./update_changelog.sh | |
- name: Version bump PR | |
uses: peter-evans/create-pull-request@v4 | |
env: | |
GITHUB_TOKEN: | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "Bumping version for the next data-api release" | |
title: "Bumping version for next data-api release" | |
branch-suffix: "short-commit-hash" | |
base: "main" |