From ed35b0f81a2f77ead51887754a47f9b7dc824dcb Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 22 Mar 2025 09:54:25 +0100 Subject: [PATCH 1/4] Debug run. --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a97243ab64..b399df0bb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -229,6 +229,9 @@ jobs: - name: Describe new release run: | # describe the development release. + ls -la + touch output.txt + exit 1 if [[ "develop" == "$version" ]]; then echo 'Describe the latest develop release' rm -f output.txt From e39d4bc2883f4fee44ebfb7d11f8676809248343 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 22 Mar 2025 13:50:04 +0100 Subject: [PATCH 2/4] Correct access rights. --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b399df0bb9..c9c092f181 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -229,6 +229,7 @@ jobs: - name: Describe new release run: | # describe the development release. + chown runner:docker output.txt ls -la touch output.txt exit 1 From aef3d340ae2f8de57023d83a417848e24ef08a21 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 22 Mar 2025 13:53:56 +0100 Subject: [PATCH 3/4] Escalate to sudo. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9c092f181..5b55e9a352 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -229,7 +229,7 @@ jobs: - name: Describe new release run: | # describe the development release. - chown runner:docker output.txt + sudo chown runner:docker output.txt ls -la touch output.txt exit 1 From 1734c7f545b0ba46fac8fa77d9b7b71af89c099f Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 22 Mar 2025 13:58:40 +0100 Subject: [PATCH 4/4] Fix output.txt routine. --- .github/workflows/release.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b55e9a352..53794f3c14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -204,13 +204,8 @@ jobs: - name: Commit all changes run: | # add all content, except output.txt (this contains the changelog and/or the download instructions) - echo 'Add all and reset output.txt' + echo 'Add all' git add -A - if test -f "output.txt"; then - echo 'output.txt exists, reset it.' - git reset output.txt - fi - # push to a new branch. echo "Auto commit on branch '$(git branch --show-current)'." git commit -m "🤖 Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true @@ -228,11 +223,8 @@ jobs: GH_TOKEN: "" - name: Describe new release run: | + # describe the development release. - sudo chown runner:docker output.txt - ls -la - touch output.txt - exit 1 if [[ "develop" == "$version" ]]; then echo 'Describe the latest develop release' rm -f output.txt @@ -265,8 +257,8 @@ jobs: # describe the main release if [[ "develop" != "$version" ]] && [[ "$version" != branch* ]] && [[ "$version" != *alpha* ]] && [[ "$version" != *beta* ]]; then echo 'Describe the latest release' - touch output.txt sudo chown -R runner:docker output.txt + touch output.txt echo '' >> output.txt echo '### Instructions' >> output.txt echo '' >> output.txt