Skip to content

Daily Building Script Execution #2

Daily Building Script Execution

Daily Building Script Execution #2

Workflow file for this run

name: Daily Building Script Execution
on:
workflow_dispatch:
schedule:
# Runs at 1:00 AM every day
- cron: '0 1 * * *'
jobs:
run-shell-script:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run shell script
run: |
tar_name=chatlearn-$(date +%F).tar.gz
tar czvf /tmp/${tar_name} .
ossutil64 -i ${{ secrets.OSS_AK_ID }} -k ${{ secrets.OSS_AK_SECRET }} -e ${{ secrets.OSS_ENDPOINT }} cp -r /tmp/${tar_name} ${{ secrets.OSS_BUCKET }}/regression/chatlearn/src/