Skip to content

Commit 29ef298

Browse files
committed
debug
1 parent c015db2 commit 29ef298

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/maintenance-intent.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
changed_files:
88
runs-on: ubuntu-latest
9-
name: Evaluate changed-files
9+
name: Check changed files for x-maintenance-intent field
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Get changed files
@@ -19,24 +19,32 @@ jobs:
1919
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
2020
run: |
2121
for file in ${ALL_CHANGED_FILES}; do
22+
echo "here1 $file"
2223
bn=$(basename ${file})
24+
echo "here2 $bn"
2325
if [ $bn = "opam" ]; then
26+
echo "here3 $bn"
2427
grep "^x-maintenance-intent: " ${file} > /dev/null;
2528
maint_int_present=$?
29+
echo "here4 $maint_int_present"
2630
if [ $maint_int_present -eq 1 ]; then
31+
echo "here5 $maint_int_present"
2732
echo "- $file" >> maint-int.md
2833
fi;
2934
fi;
3035
done;
36+
echo "here6"
3137
if [ -f maint-int.md ]; then
38+
echo "here7"
3239
echo "modified=true" >> $GITHUB_OUTPUT
3340
echo "The following opam files lack the x-maintenance-intent field:" > maint-int2.md
3441
echo "" >> maint-int2.md
3542
cat maint-int.md >> maint-int2.md
3643
echo "" >> maint-int2.md
37-
echo "Please look at https://github.com/ocaml/opam-repository/blob/master/governance/policies/archiving.md#specification-of-the-x--fields-used-in-the-archiving-process for further information." >> int-maint2.md
44+
echo "Please look at https://github.com/ocaml/opam-repository/blob/master/governance/policies/archiving.md#specification-of-the-x--fields-used-in-the-archiving-process for further information." >> maint-int2.md
3845
mv maint-int2.md maint-int.md
3946
else
47+
echo "here8"
4048
echo "modified=false" >> $GITHUB_OUTPUT
4149
fi
4250

0 commit comments

Comments
 (0)