Skip to content

Commit fcb7a39

Browse files
author
Test User
committed
Add comments to GitHub action workflows that explain maining of git diff
1 parent 9354ba3 commit fcb7a39

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/commit_to_main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
2929
- name: Install dependencies
3030
run: |
31-
sudo apt-get update
32-
sudo apt-get -y install libxml2-utils
33-
python -m pip install --upgrade pip
34-
python -m pip install PyYaml
31+
sudo apt-get update
32+
sudo apt-get -y install libxml2-utils
33+
python -m pip install --upgrade pip
34+
python -m pip install PyYaml
3535
3636
- name: Render xml to markdown
3737
run: |
@@ -53,5 +53,4 @@ jobs:
5353
run: |
5454
git push
5555
env:
56-
# This uses the default GITHUB_TOKEN with write permissions
5756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pull_request_ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020

2121
- name: Install dependencies
2222
run: |
23-
sudo apt-get update
24-
sudo apt-get -y install libxml2-utils
23+
sudo apt-get update
24+
sudo apt-get -y install libxml2-utils
2525
2626
- name: Check for duplicate standard names
2727
run: |
@@ -63,19 +63,21 @@ jobs:
6363

6464
- name: Install dependencies
6565
run: |
66-
sudo apt-get update
67-
sudo apt-get -y install libxml2-utils
68-
python -m pip install --upgrade pip
69-
python -m pip install PyYaml
66+
sudo apt-get update
67+
sudo apt-get -y install libxml2-utils
68+
python -m pip install --upgrade pip
69+
python -m pip install PyYaml
7070
7171
- name: Test rendering xml file to markdown
7272
run: |
7373
tools/write_standard_name_table.py --output-format md standard_names.xml
74-
echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.md):"
74+
echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.md; "
75+
echo "assuming that 'Metadata-standard-names.md' wasn't updated and matches the version in the authoritative branch):"
7576
git diff Metadata-standard-names.md
7677
7778
- name: Test rendering xml file to yaml
7879
run: |
7980
tools/write_standard_name_table.py --output-format yaml standard_names.xml
80-
echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.yaml):"
81+
echo "The following changes will be committed when this pull request is merged (git diff Metadata-standard-names.yaml; "
82+
echo "assuming that 'Metadata-standard-names.yaml' wasn't updated and matches the version in the authoritative branch):"
8183
git diff Metadata-standard-names.yaml

0 commit comments

Comments
 (0)