<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a789b83fb668c3bd4ad8a3cfde8f8450e6dcec4a">https://github.com/macports/macports-ports/commit/a789b83fb668c3bd4ad8a3cfde8f8450e6dcec4a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a789b83fb66 GitHub Actions: list subports in dependency order
</span>a789b83fb66 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a789b83fb668c3bd4ad8a3cfde8f8450e6dcec4a
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed Oct 11 12:38:33 2023 +1100
<span style='display:block; white-space:pre;color:#404040;'> GitHub Actions: list subports in dependency order
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/68408
</span>---
.github/workflows/main.yml | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
</span><span style='display:block; white-space:pre;color:#808080;'>index a2b15fb6e71..69061b0e2d0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/.github/workflows/main.yml
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/.github/workflows/main.yml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -68,23 +68,21 @@ jobs:
</span> echo "#### Changed Ports" >> $GITHUB_STEP_SUMMARY
subportlist=""
<span style='display:block; white-space:pre;background:#ffe0e0;'>- for port in $portlist; do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo "::group::Listing subports for ${port}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- new_subports=$(mpbb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --work-dir /tmp/mpbb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- list-subports \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --archive-site= \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --archive-site-private= \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --include-deps=no \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "$port" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "::group::Listing subports"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ new_subports=$(mpbb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --work-dir /tmp/mpbb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list-subports \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --archive-site= \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --archive-site-private= \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --include-deps=no \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $portlist \
</span> | tr '\n' ' ')
<span style='display:block; white-space:pre;background:#ffe0e0;'>- for subport in $new_subports; do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo "$subport"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo "- ${subport}" >> $GITHUB_STEP_SUMMARY
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- subportlist="$subportlist $subport"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo "::endgroup::"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for subport in $new_subports; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "$subport"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "- ${subport}" >> $GITHUB_STEP_SUMMARY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subportlist="$subportlist $subport"
</span> done
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "::endgroup::"
</span>
echo "subportlist=${subportlist}" >> $GITHUB_OUTPUT
env:
</pre><pre style='margin:0'>
</pre>