Skip to content

Update AWS Event Names #173

Update AWS Event Names

Update AWS Event Names #173

Workflow file for this run

name: Update AWS Event Names
on:
schedule:
- cron: '0 */6 * * *' #Runs every 6 hours
workflow_dispatch:
jobs:
check_for_changes:
runs-on: ubuntu-latest
steps:
- name: Checkout self
uses: actions/checkout@v2
- name: Run Auto-Updater
run: |
echo "Running update script"
python3 update.py
- name: Configure Git
run: |
git config --global user.name 'auto-updater[github-actions-bot]'
git config --global user.email '[email protected]'
- name: Check for changes
id: check_changes
run: |
if git diff --quiet; then
echo "No changes detected"
echo "::set-output name=changes_detected::false"
else
echo "Changes detected"
echo "::set-output name=changes_detected::true"
fi
- name: Commit and push changes
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
git add .
git commit -m "Updated with new AWS events"
git push origin main
- name: Log outcome
run: |
if [ "${{ steps.check_changes.outputs.changes_detected }}" == "true" ]; then
echo "Changes were detected and AWS Events were updated"
else
echo "No changes detected."
fi