Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement: only generate upgrade pr when release is successful

Tre Dubrava8c90e5475b80
diff --git a/.github/workflows/generate-upgrade-impact.yml b/.github/workflows/generate-upgrade-impact.yml
index b9fcd3636f..78d61b8878 100644
--- a/.github/workflows/generate-upgrade-impact.yml
+++ b/.github/workflows/generate-upgrade-impact.yml
@@ -7,9 +7,12 @@ on:
description: "Stable release tag to analyze, for example v0.159.23"
required: true
type: string
- push:
- tags:
- - "v*.*.*"
+ workflow_call:
+ inputs:
+ tag:
+ description: "Stable release tag to analyze, for example v0.159.23"
+ required: true
+ type: string
permissions:
contents: write
diff --git a/.github/workflows/release-standalone-docker-img-postgres-offical.yml b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
index 9914796895..9841cb0555 100644
--- a/.github/workflows/release-standalone-docker-img-postgres-offical.yml
+++ b/.github/workflows/release-standalone-docker-img-postgres-offical.yml
@@ -151,13 +151,24 @@ jobs:
echo "Creating tag in Infisical/infisical-omnibus: $TAG_NAME"
LATEST_SHA=$(gh api repos/Infisical/infisical-omnibus/git/refs/heads/main --jq '.object.sha')
echo "Latest SHA: $LATEST_SHA"
-
+
gh api repos/Infisical/infisical-omnibus/git/refs \
--method POST \
--field ref="refs/tags/$TAG_NAME" \
--field sha="$LATEST_SHA"
-
+
echo "Successfully created tag $TAG_NAME"
fi
env:
GH_TOKEN: ${{ secrets.OMNIBUS_RELEASE_TOKEN }}
+
+ generate-upgrade-impact:
+ name: Generate upgrade impact PR
+ needs: [infisical-standalone, infisical-fips-standalone, trigger-binary-release]
+ permissions:
+ contents: write
+ pull-requests: write
+ uses: ./.github/workflows/generate-upgrade-impact.yml
+ with:
+ tag: ${{ github.ref_name }}
+ secrets: inherit