From b999666dc4b58e3dc93a0650e9642a8c61db7ee1 Mon Sep 17 00:00:00 2001 From: GorouFlex <98001973+gorouflex@users.noreply.github.com> Date: Tue, 30 Jan 2024 13:58:41 +0700 Subject: [PATCH] switched to mac --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 46ec327..beae4fe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: Push Release on: workflow_dispatch jobs: release: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout latest repository commit uses: actions/checkout@v4.1.1 @@ -11,21 +11,20 @@ jobs: - id: get-tag name: Fetches latest release tag - shell: sh + shell: bash run: | LATEST_TAG="$(grep -m 1 -o '## \[.*\]' Changelog.md | awk -F'[][]' '{print $2}')" echo "TAG=$LATEST_TAG" >> "$GITHUB_ENV" - name: Zip folder run: | - sudo apt-get install -y zip zip -r RielUXTU.zip RielUXTU env: TAG: ${{ env.TAG }} - id: generate-notes name: Generate Release Notes - shell: sh + shell: bash run: | BODY="$(sed -n "/## \[$TAG\]/,/## \[/p" Changelog.md | sed -e '1,2d;$d')" echo "$BODY" > ${{ github.workspace }}-RELEASE_NOTES.txt