-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.26 KB
/
update_overview.yaml
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
name: Update overview and create PR
on:
workflow_dispatch:
jobs:
create_file_and_pr:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Check out the repository
uses: actions/checkout@v4
with:
#ref: ${{ github.event.inputs.branch_name }}
ref: dev
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Create a new branch
run: |
#git checkout -b ${{ github.event.inputs.branch_name }} || git checkout ${{ github.event.inputs.branch_name }}
git checkout -b overview-update || git checkout overview-update
- name: Create a new file
run: |
# echo "${{ github.event.inputs.file_content }}" > ${{ github.event.inputs.file_path }}
python .github/scripts/gen_overview.py > AppExamples/README.md
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add AppExamples/README.md
git commit -m "Updated AppExamples/README.md"
#git push --set-upstream origin ${{ github.event.inputs.branch_name }}
git push --set-upstream origin overview-update