Skip to content

Commit e9ab101

Browse files
committed
refactor(ci): comment out sections in push workflow for clarity and maintainability
1 parent 6f00e2e commit e9ab101

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

.github/workflows/push.yml

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
gen-chunks:
7070
name: Generate chunks
7171
runs-on: ubuntu-latest
72-
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/')) }}
72+
# if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/')) }}
7373
outputs:
7474
should_build: ${{ steps.set-chunks.outputs.should_build }}
7575
recompile_preset: ${{ steps.set-chunks.outputs.recompile_preset }}
@@ -251,58 +251,58 @@ jobs:
251251
path: docs_binaries
252252
retention-days: 7
253253

254-
# Save artifacts to gh-pages
255-
save-master-artifacts:
256-
name: Save master artifacts
257-
needs: build-arduino-linux
258-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
259-
runs-on: ubuntu-latest
260-
steps:
261-
# Check out repository
262-
- name: Checkout repository
263-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
264-
with:
265-
token: ${{secrets.GITHUB_TOKEN}}
266-
fetch-depth: "0"
254+
# # Save artifacts to gh-pages
255+
# save-master-artifacts:
256+
# name: Save master artifacts
257+
# needs: build-arduino-linux
258+
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
259+
# runs-on: ubuntu-latest
260+
# steps:
261+
# # Check out repository
262+
# - name: Checkout repository
263+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
264+
# with:
265+
# token: ${{secrets.GITHUB_TOKEN}}
266+
# fetch-depth: "0"
267267

268-
- name: Switch branch
269-
run: git checkout remotes/origin/gh-pages
268+
# - name: Switch branch
269+
# run: git checkout remotes/origin/gh-pages
270270

271-
- name: Download sketches reports artifact
272-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
273-
with:
274-
pattern: pr_cli_compile_*
275-
merge-multiple: true
276-
path: master_cli_compile
271+
# - name: Download sketches reports artifact
272+
# uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
273+
# with:
274+
# pattern: pr_cli_compile_*
275+
# merge-multiple: true
276+
# path: master_cli_compile
277277

278-
- name: List files in the directory
279-
run: ls -R
278+
# - name: List files in the directory
279+
# run: ls -R
280280

281-
- name: Commit json files to gh-pages if on master
282-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
283-
continue-on-error: true
284-
run: |
285-
git config user.name "github-actions[bot]"
286-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
287-
git add --all
288-
git commit -m "Updated cli compile json files"
289-
git push origin HEAD:gh-pages
290-
291-
#Upload PR number as artifact
292-
upload-pr-number:
293-
name: Upload PR number
294-
if: ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'release/') }}
295-
runs-on: ubuntu-latest
296-
steps:
297-
- name: Save the PR number in an artifact
298-
shell: bash
299-
env:
300-
PR_NUM: ${{ github.event.number }}
301-
run: echo $PR_NUM > pr_num.txt
281+
# - name: Commit json files to gh-pages if on master
282+
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
283+
# continue-on-error: true
284+
# run: |
285+
# git config user.name "github-actions[bot]"
286+
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
287+
# git add --all
288+
# git commit -m "Updated cli compile json files"
289+
# git push origin HEAD:gh-pages
290+
291+
# #Upload PR number as artifact
292+
# upload-pr-number:
293+
# name: Upload PR number
294+
# if: ${{ github.event_name == 'pull_request' && !startsWith(github.head_ref, 'release/') }}
295+
# runs-on: ubuntu-latest
296+
# steps:
297+
# - name: Save the PR number in an artifact
298+
# shell: bash
299+
# env:
300+
# PR_NUM: ${{ github.event.number }}
301+
# run: echo $PR_NUM > pr_num.txt
302302

303-
- name: Upload PR number
304-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
305-
with:
306-
name: pr_number
307-
path: ./pr_num.txt
308-
overwrite: true
303+
# - name: Upload PR number
304+
# uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
305+
# with:
306+
# name: pr_number
307+
# path: ./pr_num.txt
308+
# overwrite: true

0 commit comments

Comments
 (0)