forked from arjun024/actions-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (33 loc) · 981 Bytes
/
check-for-workflows.yml
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
33
34
35
36
---
name: Check for workflows
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install jq
run: |
sudo apt update
sudo apt install -y jq
- name: Generate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./fetch.sh -u "${{ github.repository_owner }}" -o repos.md
./generate.sh -o dashboard.md -i repos.md
if [ -z "$(git status -s -- dashboard.md repos.md)" ]; then
echo No changes to commit
exit 0
fi
git config user.email "check-action@github"
git config user.name "check-action"
git add repos.md dashboard.md
git commit -m "Update markdown files"
git push origin "${GITHUB_REF#refs/heads/}"