File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Dispatch analytics
2+
3+ on :
4+ workflow_dispatch :
5+
6+ schedule :
7+ - cron : ' 0 * * * *'
8+
9+ permissions :
10+ id-token : write
11+ actions : read
12+ checks : read
13+ contents : read
14+ deployments : read
15+ issues : read
16+ discussions : read
17+ packages : read
18+ pages : read
19+ pull-requests : read
20+ repository-projects : read
21+ security-events : read
22+ statuses : read
23+
24+ jobs :
25+ dispatch_token :
26+ concurrency :
27+ group : analytics
28+ runs-on : ubuntu-latest
29+ environment : analytics
30+ steps :
31+ - name : Configure AWS credentials
32+ uses : aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
33+ with :
34+ aws-region : eu-central-1
35+ role-to-assume : ${{ secrets.AWS_ANALYTICS_ROLE_ARN }}
36+
37+ - name : Invoke Lambda function
38+ run : |
39+ payload=$(echo -n '{"githubToken": "${{ secrets.GITHUB_TOKEN }}"}' | base64)
40+ aws lambda invoke \
41+ --function-name ${{ secrets.AWS_ANALYTICS_DISPATCHER_ARN }} \
42+ --payload "$payload" response.json
43+ cat response.json
You can’t perform that action at this time.
0 commit comments