From fbc93a0412d2bf79fa4bbb9ef05b18836b6aedd4 Mon Sep 17 00:00:00 2001 From: Amr Elsagaei Date: Mon, 6 Apr 2026 12:12:14 -0300 Subject: [PATCH] Fix Release workflow --- .github/workflows/release.yml | 10 +++++++++- caido.config.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e65458..07bb331 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,13 @@ jobs: contents: write steps: + - name: Verify main branch + run: | + if [[ "${{ github.ref_name }}" != "main" ]]; then + echo "Release can only be done on the main branch." + exit 1 + fi + - name: Checkout project uses: actions/checkout@v4 @@ -51,9 +58,10 @@ jobs: echo "version=${VERSION}" >> $GITHUB_OUTPUT - name: Create release - uses: ncipollo/release-action@v1 + uses: caido/action-release@v1 with: tag: ${{ steps.meta.outputs.version }} commit: ${{ github.sha }} body: 'Release ${{ steps.meta.outputs.version }}' artifacts: 'dist/plugin_package.zip,dist/plugin_package.zip.sig' + immutableCreate: true \ No newline at end of file diff --git a/caido.config.ts b/caido.config.ts index be9b8d2..e1adecf 100644 --- a/caido.config.ts +++ b/caido.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ id, name: "Data Grep", description: "Extract data from your requests and responses", - version: "1.2.2", + version: "1.2.3", author: { name: "Caido Labs Inc.", email: "dev@caido.io",