-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.05 KB
/
sync.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
name: Setup Flask Test
on:
workflow_dispatch: {}
schedule:
# https://crontab.guru/#5_*/1_*_*_*
- cron: "5 */1 * * *"
permissions: write-all
jobs:
setup:
runs-on: devzero-ubuntu-24.04
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GHA_BENCHMARK }}
- name: Install yq
run: |
if ! command -v yq &> /dev/null; then
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod a+x /usr/local/bin/yq
fi
- name: Ensure sync script has correct permissions
run: |
# Make sure the script is executable and owned correctly
chmod 755 ./.github/scripts/sync-flask-workflow.sh
chown $USER:$USER ./.github/scripts/sync-flask-workflow.sh
- name: Run sync script
env:
GHA_BENCHMARK: ${{ secrets.GHA_BENCHMARK }}
run: |
./.github/scripts/sync-flask-workflow.sh "[email protected]" "sandip"