Skip to content

Commit 6f0c43e

Browse files
authored
feat: add summary output config + version bump (#15)
* feat: add summary to outputs of action.yml * chore: bump version to v1.2.0 * fix: fix linting issues
1 parent 3870ea0 commit 6f0c43e

File tree

5 files changed

+38
-26
lines changed

5 files changed

+38
-26
lines changed

.github/workflows/ci-pr-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ jobs:
4646
```
4747
${{ steps.test-action.outputs.modifiedFiles }}
4848
```
49+
50+
${{ steps.test-action.outputs.summary }}

README.md

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,37 @@ For workflows running in pull requests.
2828
For scheduled jobs to periodically check for outdated UI5 versions
2929
3030
````yaml
31-
- name: Check UI5 versions
32-
id: fix-ui5
33-
uses: DevEpos/check-outdated-ui5-version@v1
34-
with:
35-
fixOutdated: true
36-
useLTS: true
37-
manifestPaths: |
38-
router
39-
app/**/webapp
31+
name: Fix outdated UI5 versions
32+
on:
33+
schedule:
34+
- cron: "30 0 * * 1"
35+
workflow_dispatch:
4036
41-
- name: Create Pull Request
42-
if: ${{ steps.fix-ui5.outputs.modifiedFiles != '' }}
43-
uses: peter-evans/create-pull-request@v7
44-
with:
45-
commit-message: "chore: update outdated UI5 versions"
46-
branch: "update-ui5-versions/patch"
47-
title: "Update Outdated UI5 Versions"
48-
add-paths: ${{ steps.fix-ui5.outputs.modifiedFiles }}
49-
body: |
50-
This pull request updates the outdated UI5 versions found in the following files:
51-
52-
```
53-
${{ steps.fix-ui5.outputs.modifiedFiles }}
54-
```
37+
jobs:
38+
- name: Check/update UI5 versions
39+
id: fix-ui5
40+
uses: DevEpos/check-outdated-ui5-version@v1
41+
with:
42+
fixOutdated: true
43+
useLTS: true
44+
manifestPaths: |
45+
router
46+
app/**/webapp
47+
48+
- name: Create Pull Request
49+
if: ${{ steps.fix-ui5.outputs.modifiedFiles != '' }}
50+
uses: peter-evans/create-pull-request@v7
51+
with:
52+
commit-message: "chore: update outdated UI5 versions"
53+
branch: "update-ui5-versions/patch"
54+
title: "Update Outdated UI5 Versions"
55+
add-paths: ${{ steps.fix-ui5.outputs.modifiedFiles }}
56+
body: |
57+
This pull request updates the outdated UI5 versions found in the following files:
58+
59+
```
60+
${{ steps.fix-ui5.outputs.modifiedFiles }}
61+
```
5562
````
5663

5764
### Action inputs
@@ -70,6 +77,7 @@ For scheduled jobs to periodically check for outdated UI5 versions
7077
| ---------------- | ----------------------------------------------------------------------------------------------------------- |
7178
| `foundManifests` | List of `manifest.json` file paths that have been found according to the specified paths in `manifestPaths` |
7279
| `modifiedFiles` | List of `manifest.json` files that have been updated. Can be used to pass to e.g. an action to create a PR |
80+
| `summary` | Check summary as HTML string as printed to the action output ([see](#example-of-action-result)) |
7381

7482
## Example of action result
7583

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ outputs:
3535
description: Paths to all found manifest.json files
3636
modifiedFiles:
3737
description: List of newline-separated file paths of manifest.json files that have been updated
38+
summary:
39+
description: Summary of all checked manifest files (as HTML string)
3840

3941
runs:
4042
using: node20

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "check-outdated-ui5-version",
33
"description": "GitHub Action to check/update outdated UI5 versions, available on SAP BTP",
4-
"version": "1.1.1",
4+
"version": "1.2.0",
55
"author": "",
66
"type": "module",
77
"private": true,

0 commit comments

Comments
 (0)