Skip to content

update github actions to commits (#939) #238

update github actions to commits (#939)

update github actions to commits (#939) #238

Workflow file for this run

name: Update latest.json when changes pushed to main
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current repo
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Write latest sha to latest.json
run: |
echo -e { \"revision\": \"$(git rev-parse HEAD)\" }\\n > data/latest.json
- name: Run git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Commit and push changes
run: |
git add data/latest.json
git commit -m "Update data/latest.json"
git push origin main