From ab8e69b33664de6b036756e051fb07c85195dafe Mon Sep 17 00:00:00 2001 From: MaxM1211 Date: Fri, 8 Dec 2023 21:37:25 +0100 Subject: [PATCH] Update create_realease.yml --- .github/workflows/create_realease.yml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/create_realease.yml b/.github/workflows/create_realease.yml index c917998a..7aafb498 100644 --- a/.github/workflows/create_realease.yml +++ b/.github/workflows/create_realease.yml @@ -107,24 +107,9 @@ jobs: runs-on: ubuntu-latest needs: get_context_info if: needs.get_context_info.outputs.NEW_COMMIT_COUNT_LIVE > 0 - permissions: write-all + permissions: + contents: write steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - ref: ${{ needs.get_context_info.outputs.COMMIT_LIVE }} - - - name: Create ZIP For LIVE - run: | - sudo timedatectl set-timezone Europe/Berlin - mkdir release - cp "live/user.cfg" "release" - mkdir -p "release/data/Localization/german_(germany)" - cp "live/global.ini" "release/data/Localization/german_(germany)/" - cd release - echo "${{ vars.VERSION_FILE_TEXT_LIVE }} ${{ needs.get_context_info.outputs.RELEASE_TITLE_LIVE }} ${{ needs.get_context_info.outputs.DATE }} - ${{ needs.get_context_info.outputs.TIME }} Uhr" >> Version.txt - zip -r -9 "../${{ vars.ZIP_NAME_LIVE }}" * - - name: Create Release For LIVE uses: ncipollo/release-action@v1.13.0 with: @@ -132,14 +117,14 @@ jobs: commit: ${{ needs.get_context_info.outputs.COMMIT_LIVE }} name: ${{ needs.get_context_info.outputs.RELEASE_TITLE_LIVE }} body: ${{ vars.RELEASE_BODY_LIVE }} - artifacts: ${{ vars.ZIP_NAME_LIVE }} ptu_release: # runs only when ptu/global.ini was changed in the last 24 hours name: Create PTU Release runs-on: ubuntu-latest needs: [get_context_info, live_release] if: always() && (vars.TRIGGER_PTU_RELEASE == 1) && (needs.get_context_info.outputs.NEW_COMMIT_COUNT_PTU > 0) - permissions: write-all + permissions: + contents: write steps: - name: Checkout Code uses: actions/checkout@v4