-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgithub_cron.yml
More file actions
43 lines (39 loc) · 1.28 KB
/
github_cron.yml
File metadata and controls
43 lines (39 loc) · 1.28 KB
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
39
40
41
42
43
name: CIAnalyzer
on:
workflow_dispatch:
inputs:
force_save_last_run:
description: 'Force saving last run state even when errors occur'
required: false
default: false
type: boolean
schedule:
- cron: '0 * * * *'
concurrency: cianalyzer
permissions:
contents: 'read'
id-token: 'write'
jobs:
run:
runs-on: ubuntu-latest
container:
image: ghcr.io/kesin11/ci_analyzer:v5
timeout-minutes: 20
steps:
# Checkout your repository that contains your config file.
- uses: actions/checkout@v3
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
service_account: 'my-service-account@my-project.iam.gserviceaccount.com'
- name: Run CIAnalyzer
run: ci_analyzer -c ./ci_analyzer.yaml ${{ inputs.force_save_last_run && '--force-save-last-run' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.YOUR_GITHUB_PAT }}
CIRCLECI_TOKEN: ${{ secrets.YOUR_CIRCLECI_TOKEN }}
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: local_exporter output file
path: output