File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -117,3 +117,28 @@ jobs:
117
117
build-args : |
118
118
POSTHOG_API_KEY=${{ secrets.PUBLIC_POSTHOG_API_KEY }}
119
119
INFISICAL_PLATFORM_VERSION=${{ steps.extract_version.outputs.version }}
120
+ trigger-binary-release :
121
+ runs-on : ubuntu-latest
122
+ needs : [infisical-standalone, infisical-fips-standalone]
123
+ steps :
124
+ - name : Create tag if it doesn't exist
125
+ run : |
126
+ TAG_NAME="${{ github.ref_name }}"
127
+ echo "Checking for tag: $TAG_NAME"
128
+
129
+ if gh api repos/Infisical/infisical-omnibus/git/refs/tags/$TAG_NAME --silent 2>/dev/null; then
130
+ echo "Tag $TAG_NAME already exists, skipping..."
131
+ else
132
+ echo "Creating tag in Infisical/infisical-omnibus: $TAG_NAME"
133
+ LATEST_SHA=$(gh api repos/Infisical/infisical-omnibus/git/refs/heads/main --jq '.object.sha')
134
+ echo "Latest SHA: $LATEST_SHA"
135
+
136
+ gh api repos/Infisical/infisical-omnibus/git/refs \
137
+ --method POST \
138
+ --field ref="refs/tags/$TAG_NAME" \
139
+ --field sha="$LATEST_SHA"
140
+
141
+ echo "Successfully created tag $TAG_NAME"
142
+ fi
143
+ env :
144
+ GH_TOKEN : ${{ secrets.OMNIBUS_RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments