From fee9ca5e6407e4a778f2105bbad66eea7e04db04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 28 Feb 2025 14:10:22 +0100 Subject: [PATCH] fix(release) use a portable sed invokation --- .github/workflows/release-stable.yml | 4 ++-- .gitignore | 1 + release.sh | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-stable.yml b/.github/workflows/release-stable.yml index 75b2e5a..33d4f21 100644 --- a/.github/workflows/release-stable.yml +++ b/.github/workflows/release-stable.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - sed -i "" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml + sed -i".bak" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "release: stable-${{ github.event.inputs.version }}" @@ -28,7 +28,7 @@ jobs: generate_release_notes: true make_latest: true - run: | - sed -i "" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml + sed -i".bak" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "misc: working on unstable" diff --git a/.gitignore b/.gitignore index 8996a5d..2118495 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.bak *.swp .env* docker-compose.override.yml diff --git a/release.sh b/release.sh index dde465f..84827a4 100755 --- a/release.sh +++ b/release.sh @@ -58,7 +58,7 @@ mv tmp CHANGELOG.md # Set specific image tags in compose files # -sed -i "" -e "s/unstable/${VERSION}/" *.yml +sed -i".bak" -e "s/unstable/${VERSION}/" *.yml # Commit all changes and tag the repo # @@ -69,7 +69,7 @@ git tag -a "${VERSION}" -m "release" -m "${CHANGES}" # Revert back to "unstable" for development # -sed -i "" -e "s/${VERSION}/unstable/" *.yml +sed -i".bak" -e "s/${VERSION}/unstable/" *.yml git commit -a -m "misc: working on unstable"