Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the updateTarget workflow to include the new PR description #2804

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/updateTarget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
type: string
default: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
path:
description: Defines the committer / author that should be used for the commit
description: Defines the path where the target file to update is located
required: true
type: string
secrets:
Expand All @@ -35,16 +35,22 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Update Target Platform
working-directory: ${{ inputs.path }}
run: >-
mvn -ntp -f ${{ inputs.path }}
tycho-version-bump:update-target@update-target
mvn -ntp --non-recursive tycho-version-bump:update-target@update-target
- name: Create PR description file if missing
if: ${{ hashFiles(format('{0}/target/targetUpdates.md', inputs.path)) == '' }}
working-directory: ${{ inputs.path }}
run: |
mkdir -p target
echo '## Everything is up to date' > target/targetUpdates.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
commit-message: Update target-platform with latest version
branch: update_target
title: Dependency Updates
body: Please review the changes and merge if appropriate, or cherry pick individual updates.
body-path: ${{ inputs.path }}/target/targetUpdates.md
delete-branch: true
draft: false
token: ${{ secrets.token }}
Expand Down