Skip to content

Commit

Permalink
fix(ci): No editor changes instead of editor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey Stengel committed Oct 9, 2024
1 parent b0e6eeb commit 7c7c516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/editor-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 7c7c516

Please sign in to comment.