Skip to content

Commit 94e565f

Browse files
committed
don't use writable-branch-detect
1 parent 407c3f5 commit 94e565f

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/cicd.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,41 +55,41 @@ jobs:
5555
# PACKAGING
5656
############################################################################
5757

58-
writable-branch-detect:
59-
runs-on: ubuntu-latest
60-
outputs:
61-
OKAY: ${{ steps.detect.outputs.OKAY }}
62-
steps:
63-
- name: is this a bot-writable branch?
64-
id: detect
65-
# dependabot can't access normal secrets
66-
# & don't run non-branch triggers (like tags)
67-
# & we don't want to trigger an update on PR's merge to main/master/default (which is a branch)
68-
run: |
69-
set -euo pipefail
70-
echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
71-
if [[ \
72-
${{github.actor}} != 'dependabot[bot]' && \
73-
${{github.ref_type}} == 'branch' && \
74-
${{format('refs/heads/{0}', github.event.repository.default_branch)}} != ${{github.ref}} \
75-
]]; then
76-
echo "OKAY=true" >> "$GITHUB_OUTPUT"
77-
echo "yes, this branch is compatible"
78-
else
79-
echo "OKAY=false" >> "$GITHUB_OUTPUT"
80-
echo "no, this branch is incompatible"
81-
fi
58+
# writable-branch-detect:
59+
# runs-on: ubuntu-latest
60+
# outputs:
61+
# OKAY: ${{ steps.detect.outputs.OKAY }}
62+
# steps:
63+
# - name: is this a bot-writable branch?
64+
# id: detect
65+
# # dependabot can't access normal secrets
66+
# # & don't run non-branch triggers (like tags)
67+
# # & we don't want to trigger an update on PR's merge to main/master/default (which is a branch)
68+
# run: |
69+
# set -euo pipefail
70+
# echo "now: $(date -u +"%Y-%m-%dT%H:%M:%S.%3N")"
71+
# if [[ \
72+
# ${{github.actor}} != 'dependabot[bot]' && \
73+
# ${{github.ref_type}} == 'branch' && \
74+
# ${{format('refs/heads/{0}', github.event.repository.default_branch)}} != ${{github.ref}} \
75+
# ]]; then
76+
# echo "OKAY=true" >> "$GITHUB_OUTPUT"
77+
# echo "yes, this branch is compatible"
78+
# else
79+
# echo "OKAY=false" >> "$GITHUB_OUTPUT"
80+
# echo "no, this branch is incompatible"
81+
# fi
8282

8383
py-setup:
84-
needs: [ writable-branch-detect ]
84+
# needs: [ writable-branch-detect ]
8585
runs-on: ubuntu-latest
8686
steps:
87-
- if: needs.writable-branch-detect.outputs.OKAY == 'true'
88-
uses: actions/checkout@v4
87+
- uses: actions/checkout@v4
88+
# if: needs.writable-branch-detect.outputs.OKAY == 'true'
8989
with:
9090
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
91-
- if: needs.writable-branch-detect.outputs.OKAY == 'true'
92-
uses: WIPACrepo/wipac-dev-py-setup-action@v4.5
91+
- uses: WIPACrepo/wipac-dev-py-setup-action@v4.5
92+
# if: needs.writable-branch-detect.outputs.OKAY == 'true'
9393
with:
9494
python_min: 3.12
9595
author: WIPAC Developers
@@ -98,15 +98,15 @@ jobs:
9898
auto_mypy_option: True
9999

100100
py-dependencies:
101-
needs: [ writable-branch-detect ]
101+
# needs: [ writable-branch-detect ]
102102
runs-on: ubuntu-latest
103103
steps:
104-
- if: needs.writable-branch-detect.outputs.OKAY == 'true'
105-
uses: actions/checkout@v4
104+
- uses: actions/checkout@v4
105+
# if: needs.writable-branch-detect.outputs.OKAY == 'true'
106106
with:
107107
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
108-
- if: needs.writable-branch-detect.outputs.OKAY == 'true'
109-
uses: WIPACrepo/wipac-dev-py-dependencies-action@v2.1
108+
- uses: WIPACrepo/wipac-dev-py-dependencies-action@v2.1
109+
# if: needs.writable-branch-detect.outputs.OKAY == 'true'
110110
with:
111111
use_directory: true
112112

0 commit comments

Comments
 (0)