From 073f11e2964ca5ba0d8a9837aed4d40e6e2930bf Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 31 May 2024 11:38:33 +0200 Subject: [PATCH] testing --- .github/workflows/release.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8cee2a..3c33abe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,14 +16,28 @@ jobs: with: fetch-depth: 0 - - name: Checkout profile + - name: Prüfe, ob release.yml existiert + id: check_file + run: | + if [ ! -f .github/release.yml ]; then + echo "RELEASE_YML_MISSING=true" >> $GITHUB_OUTPUT + fi + + - name: Checkout Upstream-Repository (falls release.yml fehlt) uses: actions/checkout@v4 - if: ${{ hashFiles('release.yml') != '' }} + if: steps.check_file.outputs.RELEASE_YML_MISSING == 'true' with: repository: "${{ github.repository_owner }}/.github" - sparse-checkout: release.yml + path: upstream + sparse-checkout: config/release.yml sparse-checkout-cone-mode: false + - name: Kopiere release.yml (falls vorhanden) + if: steps.check_file.outputs.RELEASE_YML_MISSING == 'true' + run: | + cp upstream/config/release.yml .github/release.yml + + - name: Create Release Page shell: bash env: