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
34 changes: 32 additions & 2 deletions .github/workflows/commit-meeting-summaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Commit Meeting Summaries
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run daily at midnight
- cron: "0 0 * * *" # Run daily at midnight
permissions:
contents: write
jobs:
commit-meeting-summaries:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,4 +35,32 @@ jobs:
else
echo "Error updating meeting summaries by ID"
exit 1
fi
fi
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
persist-credentials: true
- name: Update README timestamp
run: |
set -e
TS=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
if grep -q '^Archive data last updated at - ' README.md; then
sed -i "s/^Archive data last updated at - .*/Archive data last updated at - ${TS}/" README.md
else
echo "" >> README.md
echo "Archive data last updated at - ${TS}" >> README.md
fi
- name: Commit and push changes
run: |
set -e
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md
if git diff --staged --quiet; then
echo "No README changes to commit."
exit 0
fi
git commit -m "docs: update README with latest archive data timestamp [skip ci]"
git push origin HEAD:${GITHUB_REF_NAME}