From 9c92480fe8204e3216cf5c56df2495a04f7e6b80 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Thu, 24 Oct 2024 19:38:13 +0200 Subject: [PATCH] [no ci] Update ci.yml --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db16097..0a611d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,19 @@ on: - draft - release jobs: + read-repo-files: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Outputs + id: out + run: | + echo "mcpelauncher-ref=$(cat mcpelauncher.commit)" >> $GITHUB_OUTPUT + outputs: + mcpelauncher-ref: ${{ steps.out.mcpelauncher-ref }} ci: + needs: read-repo-files + if: (!cancelled()) uses: ./.github/workflows/main.yml with: publish: ${{ github.event_name == 'push' && github.server_url == 'https://github.com' || github.event_name == 'workflow_dispatch' && inputs.type == 'release' }} @@ -22,4 +34,5 @@ jobs: offset: 400 build-m1: true draft: ${{ github.event_name == 'workflow_dispatch' && inputs.type == 'draft' }} + mcpelauncher-ref: ${{ needs.read-repo-files.outputs.mcpelauncher-ref || 'ng' }} secrets: inherit