Skip to content

Commit 6d4241e

Browse files
committed
chore: update release
1 parent 3c12b0b commit 6d4241e

3 files changed

Lines changed: 38 additions & 14 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717

1818
outputs:
1919
release--tag_name: ${{ steps.release.outputs.tag_name }}
20-
release--release_created: ${{ steps.release.outputs.release_created }}
20+
release--releases_created: ${{ steps.release.outputs.releases_created }}
21+
release--prs_createde: ${{ steps.release.outputs.prs_created }}
2122

2223
steps:
2324
- name: Checkout code
@@ -29,27 +30,49 @@ jobs:
2930
echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
3031
echo "📰 This job is triggered by this event: ${{ github.event_name }}"
3132
33+
- name: Define config files path
34+
run: |
35+
echo "CONFIG_FILE_PATH=Repo/release-please-config.json" >> $GITHUB_ENV
36+
echo "MANIFEST_FILE_PATH=Repo/.release-please-manifest.json" >> $GITHUB_ENV
37+
38+
- name: Check working directory
39+
run: |
40+
pwd
41+
if [ -d "Repo" ]; then
42+
echo "/Repo content:"
43+
ls -la Repo
44+
else
45+
echo "/Repo sub-dir doesn’t exist. Show root:"
46+
ls -la
47+
fi
48+
49+
- name: Check config file
50+
run: |
51+
cat $CONFIG_FILE_PATH || echo "'release-please-config.json' not found"
52+
cat $MANIFEST_FILE_PATH || echo "'.release-please-manifest.json' not found"
53+
3254
- name: Run Release Please
3355
id: release
3456
uses: googleapis/release-please-action@v4
57+
env:
58+
CONFIG_FILE_PATH: ${{ env.CONFIG_FILE_PATH }}
59+
MANIFEST_FILE_PATH: ${{ env.MANIFEST_FILE_PATH }}
3560
with:
36-
release-type: simple
3761
token: ${{ secrets.GITHUB_TOKEN }}
38-
# optional. customize path to release-please-config.json
39-
config-file: Repo/release-please-config.json
40-
# optional. customize path to .release-please-manifest.json
41-
manifest-file: Repo/release-please-manifest.json
62+
config-file: ${{ env.CONFIG_FILE_PATH }}
63+
manifest-file: ${{ env.MANIFEST_FILE_PATH }}
4264

4365
- name: Print release outputs for debugging
4466
run: |
4567
echo "Release outputs:"
46-
echo "${{ toJson(steps.release.outputs) }}"
68+
echo "RELEASE CREATED: ${{ steps.release.outputs.releases_created }}" | tee -a $GITHUB_STEP_SUMMARY
69+
echo "PR CREATED/UPDATED: ${{ steps.release.outputs.prs_created }}" | tee -a $GITHUB_STEP_SUMMARY
4770
4871
- name: Status
4972
run: echo "🍏 This job's status is ${{ job.status }}."
5073

5174
release-zip:
52-
if: ${{ needs.release-please.outputs.release--release_created }}
75+
if: ${{ needs.release-please.outputs.release--releases_created == 'true' }}
5376
runs-on: ubuntu-latest
5477
needs: release-please
5578

@@ -66,7 +89,8 @@ jobs:
6689
- name: Print release outputs for debugging
6790
run: |
6891
echo "Release outputs:"
69-
echo "${{ toJson(needs.release-please.outputs.release) }}"
92+
echo "RELEASE CREATED: ${{ needs.release-please.outputs.release--releases_created }}" | tee -a $GITHUB_STEP_SUMMARY
93+
echo "PR CREATED/UPDATED: ${{ needs.release-please.outputs.release--prs_createde }}" | tee -a $GITHUB_STEP_SUMMARY
7094
7195
- name: Create ZIP archive
7296
run: |

Repo/release-please-config.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"include-component-in-tag": false,
44
"include-v-in-tag": true,
5-
"pull-request-header": "🤖 I have created a release",
6-
"pull-request-footer": "Download the `LivelyWallpaperRandom.zip` file and read the [wiki](https://github.com/Fred-Vatin/smart-random-wallpaper/wiki) to start.",
5+
"pull-request-header": "🤖 release please",
6+
"pull-request-footer": " ",
77
"packages": {
88
".": {
9-
"package-name": "Lively-Wallpaper-Random",
9+
"package-name": "Repo/Lively-Wallpaper-Random",
1010
"changelog-path": "Repo/CHANGELOG.md",
1111
"version-file": "Repo/version.txt",
12-
"extra-files": ["release-notes.md"],
12+
"extra-files": ["Repo/release-notes.md"],
1313
"changelog-sections": [
1414
{
1515
"type": "build",
@@ -23,7 +23,7 @@
2323
},
2424
{
2525
"type": "chore",
26-
"hidden": false,
26+
"hidden": true,
2727
"section": "🧰 Other"
2828
},
2929
{

0 commit comments

Comments
 (0)