FreePalestine-1948 Running Update-Content on FreePalestine1948/PalestineResources #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update-Content | |
run-name: ${{ github.actor }} Running ${{ github.workflow }} on ${{ github.repository }} | |
on: | |
schedule: | |
- cron: "0 0 * * 5" | |
workflow_dispatch: | |
jobs: | |
update-content: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: node .github/actions/update-content.js | |
- name: Commit and push changes | |
run: | | |
git config --global user.email " [email protected]" | |
git config --global user.name "Github Actions" | |
git add . | |
git commit -m "Automated content update" | |
git push |