Skip to content

Update Snapshot Date #79

Update Snapshot Date

Update Snapshot Date #79

Workflow file for this run

name: Update Snapshot Date
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
permissions: write-all
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update Snapshot Date
run: |
sed -i "s/[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}/$(date +%Y-%m-%d)/g" ./fxcore/setup-node/use-snapshot.md
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "Update Snapshot Date"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}