Skip to content

FreePalestine-1948 Running Update-Content on FreePalestine1948/PalestineResources #6

FreePalestine-1948 Running Update-Content on FreePalestine1948/PalestineResources

FreePalestine-1948 Running Update-Content on FreePalestine1948/PalestineResources #6

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