-
Notifications
You must be signed in to change notification settings - Fork 576
35 lines (31 loc) · 1015 Bytes
/
schedule.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
# Regularly clean test buckets at GMT 01:00 every day.
name: 'Schdule Delete'
on:
schedule:
- cron: '0 1 1/1 * *'
jobs:
cleanAllBucket:
environment: ali_oss_AK
runs-on: ubuntu-latest
env:
ONCI: true
ALI_SDK_OSS_ID: ${{secrets.ALI_SDK_OSS_ID}}
ALI_SDK_OSS_SECRET: ${{secrets.ALI_SDK_OSS_SECRET}}
ALI_SDK_OSS_REGION: ${{secrets.ALI_SDK_OSS_REGION}}
ALI_SDK_STS_BUCKET: ${{secrets.ALI_SDK_STS_BUCKET}}
ALI_SDK_STS_ID: ${{secrets.ALI_SDK_STS_ID}}
ALI_SDK_STS_REGION: ${{secrets.ALI_SDK_STS_REGION}}
ALI_SDK_STS_ROLE: ${{secrets.ALI_SDK_STS_ROLE}}
ALI_SDK_STS_SECRET: ${{secrets.ALI_SDK_STS_SECRET}}
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v4
- name: clean all bucket
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: x64
- run: npm install
- run: node test/node/fixtures/cleanAllBucket.js