GeezerVison is showing github.com — Pin setup-python action to a commit hash (#7491) · RustPython/RustPython@32b8af3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/lib-deps-check.yaml +8-15Lines changed: 8 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
74 | 74 |
|
75 | 75 | - name: Setup Python |
76 | 76 | if: steps.changed-files.outputs.modules != '' |
77 | | - |
| 77 | + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 |
78 | 78 | with: |
79 | 79 | python-version: "${{ env.PYTHON_VERSION }}" |
80 | 80 |
|
@@ -83,22 +83,15 @@ jobs: |
83 | 83 | id: deps-check |
84 | 84 | run: | |
85 | 85 | # Run deps for all modules at once |
86 | | - python scripts/update_lib deps ${{ steps.changed-files.outputs.modules }} --depth 2 > /tmp/deps_output.txt 2>&1 || true |
87 | | -
|
88 | | - # Read output for GitHub Actions |
89 | | - echo "deps_output<<EOF" >> $GITHUB_OUTPUT |
90 | | - cat /tmp/deps_output.txt >> $GITHUB_OUTPUT |
91 | | - echo "EOF" >> $GITHUB_OUTPUT |
92 | | -
|
93 | | - # Check if there's any meaningful output |
94 | | - if [ -s /tmp/deps_output.txt ]; then |
95 | | - echo "has_output=true" >> $GITHUB_OUTPUT |
96 | | - else |
97 | | - echo "has_output=false" >> $GITHUB_OUTPUT |
98 | | - fi |
| 86 | + echo "deps_output<<EOF" >> "$GITHUB_OUTPUT" |
| 87 | + output=$(python scripts/update_lib deps "${MODULES}" --depth 2 2>&1 || true) |
| 88 | + echo "$output" >> "$GITHUB_OUTPUT" |
| 89 | + echo "EOF" >> "$GITHUB_OUTPUT" |
| 90 | + env: |
| 91 | + MODULES: ${{ steps.changed-files.outputs.modules }} |
99 | 92 |
|
100 | 93 | - name: Post comment |
101 | | - if: steps.deps-check.outputs.has_output == 'true' |
| 94 | + if: steps.deps-check.outputs.deps_output != '' |
102 | 95 | uses: marocchino/sticky-pull-request-comment@v3 |
103 | 96 | with: |
104 | 97 | header: lib-deps-check |
|