Skip to content

Commit f3a1344

Browse files
committed
Disable release recording until the infrastructure is ready
Commented out rather than removed, so re-enabling is a straight uncomment.
1 parent a97eaf9 commit f3a1344

1 file changed

Lines changed: 41 additions & 38 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -116,41 +116,44 @@ jobs:
116116
-H 'Content-type: application/json' \
117117
--data "{\"text\":\"*Codeplain Client*: Publishing \`${{ github.ref_name }}\` to PyPI FAILED :x:. See <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the run log>.\"}"
118118
119-
# Runs only after the package is on PyPI. Kept as its own job so the publish job
120-
# keeps its minimal permissions and no checkout.
121-
linear-release:
122-
name: Record release in Linear
123-
needs: publish-to-pypi
124-
runs-on: ubuntu-latest
125-
126-
permissions:
127-
contents: read
128-
129-
env:
130-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
131-
132-
steps:
133-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
134-
with:
135-
# The scan needs full history.
136-
fetch-depth: 0
137-
138-
# Non-fatal: the package is already published.
139-
- name: Record release in Linear
140-
id: linear
141-
continue-on-error: true
142-
uses: linear/linear-release-action@0a25abab892a91062ebf42260dbb2ce6277aa205 # v0.16.0
143-
with:
144-
access_key: ${{ secrets.LINEAR_ACCESS_KEY }}
145-
version: ${{ github.ref_name }}
146-
# Pin the CLI the action downloads, not just the action.
147-
cli_version: v0.16.0
148-
149-
# continue-on-error keeps the job green, so this checks the step's own
150-
# outcome — `failure()` would never fire.
151-
- name: Notify Slack (release not recorded)
152-
if: ${{ steps.linear.outcome == 'failure' && env.SLACK_WEBHOOK_URL != '' }}
153-
run: |
154-
curl -s -X POST "$SLACK_WEBHOOK_URL" \
155-
-H 'Content-type: application/json' \
156-
--data "{\"text\":\"*Codeplain Client*: \`${{ github.ref_name }}\` is on PyPI, but recording it in Linear FAILED :warning:. See <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the run log>.\"}"
119+
# Release pipelines to be turned on only after the rest of the infrastructure
120+
# is ready.
121+
#
122+
# # Runs only after the package is on PyPI. Kept as its own job so the publish job
123+
# # keeps its minimal permissions and no checkout.
124+
# linear-release:
125+
# name: Record release in Linear
126+
# needs: publish-to-pypi
127+
# runs-on: ubuntu-latest
128+
#
129+
# permissions:
130+
# contents: read
131+
#
132+
# env:
133+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
134+
#
135+
# steps:
136+
# - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
137+
# with:
138+
# # The scan needs full history.
139+
# fetch-depth: 0
140+
#
141+
# # Non-fatal: the package is already published.
142+
# - name: Record release in Linear
143+
# id: linear
144+
# continue-on-error: true
145+
# uses: linear/linear-release-action@0a25abab892a91062ebf42260dbb2ce6277aa205 # v0.16.0
146+
# with:
147+
# access_key: ${{ secrets.LINEAR_ACCESS_KEY }}
148+
# version: ${{ github.ref_name }}
149+
# # Pin the CLI the action downloads, not just the action.
150+
# cli_version: v0.16.0
151+
#
152+
# # continue-on-error keeps the job green, so this checks the step's own
153+
# # outcome — `failure()` would never fire.
154+
# - name: Notify Slack (release not recorded)
155+
# if: ${{ steps.linear.outcome == 'failure' && env.SLACK_WEBHOOK_URL != '' }}
156+
# run: |
157+
# curl -s -X POST "$SLACK_WEBHOOK_URL" \
158+
# -H 'Content-type: application/json' \
159+
# --data "{\"text\":\"*Codeplain Client*: \`${{ github.ref_name }}\` is on PyPI, but recording it in Linear FAILED :warning:. See <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the run log>.\"}"

0 commit comments

Comments
 (0)