Skip to content

Commit 50f2eef

Browse files
author
=
committed
fixed for PRs
1 parent 8121dc6 commit 50f2eef

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/update-map-yaml.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
- name: Run generate_path.py
2525
run: python tools/generate_path.py
2626

27-
- name: Commit and push changes
28-
run: |
29-
git config --global user.name "github-actions[bot]"
30-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
31-
git add map.yaml
32-
git diff --cached --quiet || git commit -m "Auto-update map.yaml"
33-
git push
27+
- name: Create Pull Request for map.yaml update
28+
uses: peter-evans/create-pull-request@v6
29+
with:
30+
commit-message: "Auto-update map.yaml"
31+
title: "Auto-update map.yaml"
32+
body: "This PR was automatically generated by a GitHub Action to update map.yaml."
33+
branch: auto/update-map-yaml
34+
add-paths: map.yaml
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/update-meta-yamls.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
- name: Run update_meta_yamls.py
2525
run: python tools/update_meta_yamls.py
2626

27-
- name: Commit and push changes
28-
run: |
29-
git config --global user.name "github-actions[bot]"
30-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
31-
git add .
32-
git diff --cached --quiet || git commit -m "Auto-update meta.yaml files"
33-
git push
27+
- name: Create Pull Request for meta.yaml update
28+
uses: peter-evans/create-pull-request@v6
29+
with:
30+
commit-message: "Auto-update meta.yaml files"
31+
title: "Auto-update meta.yaml files"
32+
body: "This PR was automatically generated by a GitHub Action to update meta.yaml files."
33+
branch: auto/update-meta-yamls
34+
add-paths: '**/meta.yaml'
3435
env:
3536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)