forked from ArmDeveloperEcosystem/arm-learning-paths
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.24 KB
/
stats-pr.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
36
37
name: Open Pull Request with updated stats file
on:
workflow_run:
workflows: ["Test Learning Path"]
types: [completed]
permissions:
actions: read
contents: write
pull-requests: write
jobs:
stats-pr:
runs-on: arm-linux-runner
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Move stats file
run: |
mv stats_current_test_info/stats_current_test_info.yml data/stats_current_test_info.yml
rm -rf stats_current_test_info
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
if: success()
with:
commit-message: update stats_current_test_info.yml
title: Update stats_current_test_info.yml
body: |
Update test result file with recent run
Auto-generated by create-pull-request: https://github.com/peter-evans/create-pull-request
branch: update-stats-current-test-info
base: main