From 7c7c5169c3a259794358b6b9a986bdcfccf3b37f Mon Sep 17 00:00:00 2001 From: Mikey Stengel Date: Wed, 9 Oct 2024 18:02:07 +0200 Subject: [PATCH] fix(ci): No editor changes instead of editor changes --- .github/workflows/editor-changelog.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/editor-changelog.yaml b/.github/workflows/editor-changelog.yaml index 58de2e3235..dc51005eef 100644 --- a/.github/workflows/editor-changelog.yaml +++ b/.github/workflows/editor-changelog.yaml @@ -73,14 +73,14 @@ jobs: run: exit 0 - name: Get merged PRs affecting editor package - if: env.version_changed == 'true' && env.editor_changes == 'true' + if: env.version_changed == 'true' && env.no_editor_changes == 'false' id: get_prs run: | PRS=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls?state=closed&per_page=100" | jq -r '.[] | select(.merged_at != null and .merged_at > $GITHUB_ENV.LAST_TAG and .head.repo.full_name == "${{ github.repository }}") | .number') echo "PR_NUMBERS=$PRS" >> $GITHUB_ENV - name: Get PR titles that touched editor folder - if: env.version_changed == 'true' && env.editor_changes == 'true' + if: env.version_changed == 'true' && env.no_editor_changes == 'false' id: get_pr_titles run: | for pr in $PRS; do @@ -93,7 +93,7 @@ jobs: shell: bash - name: Generate Changelog - if: env.version_changed == 'true' && env.editor_changes == 'true' + if: env.version_changed == 'true' && env.no_editor_changes == 'false' run: | echo "## Changelog for version $CURRENT_VERSION" > packages/editor/CHANGELOG.md if [ -f pr_titles.txt ]; then @@ -103,7 +103,7 @@ jobs: fi - name: Commit and Push Changelog - if: env.version_changed == 'true' && env.editor_changes == 'true' + if: env.version_changed == 'true' && env.no_editor_changes == 'false' run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "GitHub Action Bot"