-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (32 loc) · 897 Bytes
/
update.yml
File metadata and controls
32 lines (32 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Update release metadata
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 */6 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt -y install jq jo perl curl parallel
- name: Run update script
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./bin/update.bash
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add docs/
git diff-index --quiet HEAD || git commit -m "Update release metadata"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}