-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (38 loc) · 1.03 KB
/
monitor.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
37
38
on:
schedule:
- cron: 0 */6 * * *
permissions:
id-token: write
contents: write
actions: write
checks: write
deployments: write
discussions: write
issues: write
pages: read
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check commit value against last value
run: |-
ls ./src/monitor_unit
chmod +x ./src/monitor_unit/compare_commits.sh
export SECRET_KEY=${{ secrets.SECRET_KEY_2 }}
./src/monitor_unit/compare_commits.sh
- name: Update Commit Value
run: |-
chmod +x ./src/monitor_unit/update_commit_value.sh
export SECRET_KEY=${{ secrets.SECRET_KEY_2 }}
./src/monitor_unit/update_commit_value.sh
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.SECRET_KEY_2 }}
# branch: ${{ github.ref }}