Skip to content

Commit 0ffd9a5

Browse files
authored
Use depot CLI for release notes (#6030)
* Use depot CLI for release notes * Don't use azure apt mirror. It's slow
1 parent 0cd365e commit 0ffd9a5

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

.github/actions/build-securebuild-package-locally/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ runs:
3434
SHIM
3535
sudo chmod +x /usr/local/bin/systemctl
3636
37+
- name: Configure apt for amd64
38+
if: inputs.arch == 'amd64'
39+
shell: bash
40+
run: |
41+
sudo sed -i \
42+
's|http://azure.archive.ubuntu.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' \
43+
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || true
44+
sudo tee /etc/apt/apt.conf.d/80-retries-timeouts > /dev/null << 'EOF'
45+
Acquire::Retries "3";
46+
Acquire::http::Timeout "30";
47+
Acquire::https::Timeout "30";
48+
EOF
49+
sudo rm -rf /var/lib/apt/lists/*
50+
3751
- uses: chainguard-dev/actions/setup-melange@v1.6.30
3852

3953
- name: Build packages

.github/workflows/release.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,18 +387,22 @@ jobs:
387387
needs: [generate-tag]
388388
if: github.ref_type != 'branch'
389389
steps:
390-
- name: Checkout
391-
uses: actions/checkout@v7
390+
- name: Setup Depot CLI
391+
uses: depot/setup-action@v1
392392

393393
- name: Generate KOTS Release Notes PR
394394
env:
395395
GIT_TAG: ${{ needs.generate-tag.outputs.tag }}
396-
GH_PAT: ${{ secrets.GH_PAT }}
396+
DEPOT_CI_DISPATCH_TOKEN: ${{ secrets.DEPOT_CI_DISPATCH_TOKEN }}
397397
run: |
398-
curl -H "Authorization: token $GH_PAT" \
399-
-H 'Accept: application/json' \
400-
-d "{\"event_type\": \"app-manager-release-notes\", \"client_payload\": {\"version\": \"${GIT_TAG}\" }}" \
401-
"https://api.github.com/repos/replicatedhq/replicated-docs/dispatches"
398+
depot ci dispatch \
399+
--repo replicatedhq/replicated-docs \
400+
--workflow release-notes.yml \
401+
--ref main \
402+
--input event_type=app-manager-release-notes \
403+
--input version="$GIT_TAG" \
404+
--input dry_run=false \
405+
--token "$DEPOT_CI_DISPATCH_TOKEN"
402406
403407
build-airgap:
404408
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)