Skip to content

Commit 6d28297

Browse files
committed
Rename git ref file
1 parent e3e0963 commit 6d28297

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/standard_examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Read the pinned PALS standard commit
2828
id: pin
2929
run: |
30-
sha=$(grep -vE '^[[:space:]]*(#|$)' tests/pals_standard_ref.txt | head -n1)
30+
sha=$(grep -vE '^[[:space:]]*(#|$)' tests/standard_examples_git_reference.txt | head -n1)
3131
echo "sha=${sha}" >> "$GITHUB_OUTPUT"
3232
- name: Checkout PALS repository
3333
uses: actions/checkout@v7

.github/workflows/weekly_update.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Weekly update
22

3-
# Bumps the pinned pals-project/pals commit (tests/pals_standard_ref.txt) that
3+
# Bumps the pinned pals-project/pals commit
4+
# (tests/standard_examples_git_reference.txt) that
45
# the standard_examples workflow validates against, as a PR. A change to the
56
# standard that breaks the examples validation therefore shows up in that PR,
67
# not in unrelated ones.
@@ -33,9 +34,9 @@ jobs:
3334
- name: Update the pinned PALS standard commit
3435
id: bump
3536
run: |
36-
old=$(grep -vE '^[[:space:]]*(#|$)' tests/pals_standard_ref.txt | head -n1)
37+
old=$(grep -vE '^[[:space:]]*(#|$)' tests/standard_examples_git_reference.txt | head -n1)
3738
new=$(git ls-remote https://github.com/pals-project/pals.git refs/heads/main | cut -f1)
38-
sed -i "s/^${old}\$/${new}/" tests/pals_standard_ref.txt
39+
sed -i "s/^${old}\$/${new}/" tests/standard_examples_git_reference.txt
3940
echo "old=${old}" >> "$GITHUB_OUTPUT"
4041
echo "new=${new}" >> "$GITHUB_OUTPUT"
4142
- name: Commit changes

tests/validate_standard_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
This script is not run by pytest; the standard_examples workflow runs it
1414
against a checkout of the standard, pinned to the commit named in
15-
tests/pals_standard_ref.txt. Run it locally, from the repository root:
15+
tests/standard_examples_git_reference.txt. Run it locally, from the repository root:
1616
1717
python tests/validate_standard_examples.py \
1818
--root /path/to/pals/examples \

0 commit comments

Comments
 (0)