Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/import_meetup_events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ jobs:
cd tools
python meetup_import.py

- name: Confirm only events.yml was modified
run: |
MODIFIED_FILES=$(git diff --name-only)
echo "Modified files: $MODIFIED_FILES"
if echo "$MODIFIED_FILES" | grep -qv "^_data/events.yml$"; then
echo "ERROR: Unexpected files were modified"
exit 1
fi
echo "Only events.yml was modified as expected"

- name: Create or Update Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v7
Expand All @@ -64,11 +54,20 @@ jobs:
body: |
This PR was created automatically by a GitHub Action to import upcoming Meetup events.
Only `_data/events.yml` should be updated.

Please review the changes `_data/events.yml` and ensure that everything is parsed correctly before merging.
labels: |
automation, auto-approve

- name: Confirm only events.yml was modified
if: steps.create-pr.outputs.pull-request-number
run: |
MODIFIED_FILES=$(git diff --name-only)
echo "Modified files: $MODIFIED_FILES"
if echo "$MODIFIED_FILES" | grep -qv "^_data/events.yml$"; then
echo "ERROR: Unexpected files were modified"
exit 1
fi
echo "Only events.yml was modified as expected"

- name: Wait for required checks
if: steps.create-pr.outputs.pull-request-number
run: |
Expand Down