Skip to content

Commit

Permalink
skipping roots
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 13, 2024
1 parent 703dc55 commit 1e2c4cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ runs:
shell: bash
run: |
spack -e myenv find --no-groups -X > specs.txt
if grep -qE "@develop|@master|@main" specs.txt; then
awk 'NR > 1 && NF {found=1} found' specs.txt | grep -qE "@develop|@master|@main"
if [ $? -eq 0 ]; then
echo "Error: Found develop dependencies (@develop, @master, or @main) in specs.txt." >&2
echo "------ specs are the following:" >&2
cat specs.txt >&2
Expand All @@ -98,7 +99,8 @@ runs:
shell: bash
run: |
spack -e myenv find --no-groups > specs.txt
if grep -qE "@develop|@master|@main" specs.txt; then
awk 'NR > 1 && NF {found=1} found' specs.txt | grep -qE "@develop|@master|@main"
if [ $? -eq 0 ]; then
echo "Error: Found develop dependencies (@develop, @master, or @main) in specs.txt." >&2
echo "------ specs are the following:" >&2
cat specs.txt >&2
Expand Down

0 comments on commit 1e2c4cf

Please sign in to comment.