From 35bc41e3e246786181db1b27eeba6f708ad11774 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Mon, 17 Feb 2025 15:08:54 +0100 Subject: [PATCH] combine checkouts --- .github/workflows/changelog.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 65d1b14b93..87c4c8e7e6 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -50,6 +50,9 @@ jobs: with: sparse-checkout: | version/VERSION + .changie.yaml + .changes/ + sparse-checkout-cone-mode: false ref: ${{ github.ref }} # Ref refers to the target branch of this PR - name: "Check for changelog entry" @@ -104,7 +107,6 @@ jobs: } } - // TODO: Does this need a JSON.parse? const changesPresent = ${{steps.changelog.outputs.changes}}; const changedChangesFiles = ${{steps.changelog.outputs.changes_files}}; const changelogChangesPresent = ${{steps.changelog.outputs.changelog}}; @@ -185,15 +187,6 @@ jobs: // Nothing to complain about, so delete any existing comment await createOrUpdateChangelogComment("", true); - - name: Checkout changie config - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - ref: ${{ github.head_ref }} - sparse-checkout: | - .changie.yaml - .changes/ - sparse-checkout-cone-mode: false - - name: Validate changie fragment is valid uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2.0.0 with: