3333 submodules : false
3434 show-progress : false
3535 fetch-depth : 1
36+ persist-credentials : false
3637 - name : Set up python
3738 uses : actions/setup-python@v5
3839 with :
@@ -66,15 +67,19 @@ jobs:
6667 EXCLUDE_COMMIT : ${{ github.event.pull_request.head.sha }}
6768 - name : Set head sha (pull)
6869 if : github.event_name == 'pull_request'
69- run : echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
70+ env :
71+ HEAD_SHA : ${{ github.event.pull_request.head.sha }}
72+ run : echo "HEAD_SHA=$HEAD_SHA" >> $GITHUB_ENV
7073 - name : Set base sha (pull)
7174 if : github.event_name == 'pull_request'
7275 run : git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
7376 env :
7477 SHA : ${{ steps.get-last-commit-with-checks.outputs.commit_sha || github.event.pull_request.base.sha }}
7578 - name : Set head sha (push)
7679 if : github.event_name == 'push'
77- run : echo "HEAD_SHA=${{ github.event.after }}" >> $GITHUB_ENV
80+ env :
81+ SHA : ${{ github.event.after }}
82+ run : echo "HEAD_SHA=$SHA" >> $GITHUB_ENV
7883 - name : Set base sha (push)
7984 if : github.event_name == 'push'
8085 run : git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
@@ -114,6 +119,7 @@ jobs:
114119 submodules : false
115120 show-progress : false
116121 fetch-depth : 1
122+ persist-credentials : false
117123 - name : Set up python
118124 uses : actions/setup-python@v5
119125 with :
@@ -149,9 +155,9 @@ jobs:
149155 (github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') ||
150156 (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
151157 run : |
152- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -universal --no-progress --region us-east-1
153- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -arm64 --no-progress --region us-east-1
154- [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env. CP_VERSION }} -x64 --no-progress --region us-east-1
158+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -universal --no-progress --region us-east-1
159+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -arm64 --no-progress --region us-east-1
160+ [ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${ CP_VERSION}" -x64 --no-progress --region us-east-1
155161 env :
156162 AWS_PAGER : ' '
157163 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -170,6 +176,7 @@ jobs:
170176 submodules : false
171177 show-progress : false
172178 fetch-depth : 1
179+ persist-credentials : false
173180 - name : Set up python
174181 uses : actions/setup-python@v5
175182 with :
@@ -188,7 +195,7 @@ jobs:
188195 name : stubs
189196 path : circuitpython-stubs/dist/*
190197 - name : Test Documentation Build (HTML)
191- run : sphinx-build -E -W -b html -D version=${{ env. CP_VERSION }} -D release=${{ env. CP_VERSION }} . _build/html
198+ run : sphinx-build -E -W -b html -D version="$ CP_VERSION" -D release="$ CP_VERSION" . _build/html
192199 - uses : actions/upload-artifact@v4
193200 with :
194201 name : docs-html
@@ -271,6 +278,7 @@ jobs:
271278 submodules : false
272279 show-progress : false
273280 fetch-depth : 1
281+ persist-credentials : false
274282 - name : Set up submodules
275283 uses : ./.github/actions/deps/submodules
276284 - name : build mpy-cross
0 commit comments