Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ It checks all artifacts that match the provided range and suggest a lower bound

Workflow that could be used as a timed action to check if any automatic code cleanup can be performed.
Actions to perform must be defined in the configuration of the [quickfix-and-cleanup-mojo](https://github.com/eclipse-tycho/tycho/blob/main/RELEASE_NOTES.md#new-quickfix-and-cleanup-mojo)
that is called by this action. For this purpose it uses the follwoing execution ids `cleanups` and `quickfixes`
that is called by this action. For this purpose it uses the follwoing execution ids `cleanups`, `quickfixes` and `manifest`.

## updateTarget.yml

Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/cleanCode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ on:
do-cleanups:
description: Configures if cleanup actions should be performed
required: false
default: true
default: false
type: boolean
do-quickfix:
description: Configures if quickfix actions should be performed
required: false
default: true
default: false
type: boolean
do-manifest:
description: Configures if organize manifest actions should be performed
required: false
default: false
type: boolean
submodules:
description: |
Whether to checkout submodules: `true` to checkout submodules or `recursive` to recursively checkout submodules.
Expand Down Expand Up @@ -112,15 +117,20 @@ jobs:
working-directory: ${{ matrix.bundles }}
if: ${{ inputs.do-cleanups && fromJson(steps.list-prs.outputs.prs)[9] == null }}
run: >-
xvfb-run mvn -B -ntp tycho-cleancode:cleanup@cleanups
xvfb-run mvn -U -B -ntp tycho-cleancode:cleanup@cleanups
- name: Perform QuickFixes on ${{ matrix.bundles }}
working-directory: ${{ matrix.bundles }}
if: ${{ inputs.do-quickfix && fromJson(steps.list-prs.outputs.prs)[9] == null }}
run: >-
xvfb-run mvn -B -ntp -e tycho-cleancode:quickfix@quickfixes
xvfb-run mvn -U -B -ntp -e tycho-cleancode:quickfix@quickfixes
- name: Perform Organize Manifest on ${{ matrix.bundles }}
working-directory: ${{ matrix.bundles }}
if: ${{ inputs.do-manifest && fromJson(steps.list-prs.outputs.prs)[9] == null }}
run: >-
xvfb-run mvn -U -B -ntp -e tycho-cleancode:manifest@manifest
- name: Create final PR description
working-directory: ${{ matrix.bundles }}/target
if: ${{ hashFiles(format('{0}/target/quickfix.md', matrix.bundles)) != '' || hashFiles(format('{0}/target/cleanups.md', matrix.bundles)) != '' }}
if: ${{ hashFiles(format('{0}/target/quickfix.md', matrix.bundles)) != '' || hashFiles(format('{0}/target/cleanups.md', matrix.bundles)) != '' || hashFiles(format('{0}/target/organizeManifest.md', matrix.bundles)) != '' }}
run: >-
cat *.md > pr.md
- name: Create Pull Request
Expand All @@ -139,3 +149,4 @@ jobs:
author: ${{ inputs.author }}
add-paths: |
**/*.java
**/*.MF
6 changes: 6 additions & 0 deletions eclipse-platform-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@
</quickfixes>
</configuration>
</execution>
<execution>
<id>manifest</id>
<configuration>
<calculateUses>true</calculateUses>
</configuration>
</execution>
</executions>
<configuration>
<local>true</local>
Expand Down
Loading