Setup Flask Test #479
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |