mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
Update release-standalone-docker-img-postgres-offical.yml
This commit is contained in:
@@ -127,13 +127,23 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Create tag if it doesn't exist
|
- name: Create tag if it doesn't exist
|
||||||
run: |
|
run: |
|
||||||
if ! gh api repos/Infisical/infisical-omnibus/git/refs/tags/${{ github.ref_name }} 2>/dev/null; then
|
TAG_NAME="v0.150.0-nightly-20250926"
|
||||||
|
echo "Checking for tag: $TAG_NAME"
|
||||||
|
|
||||||
|
if gh api repos/Infisical/infisical-omnibus/git/refs/tags/$TAG_NAME --silent 2>/dev/null; then
|
||||||
|
echo "Tag $TAG_NAME already exists, skipping..."
|
||||||
|
else
|
||||||
|
echo "Creating tag in Infisical/infisical-omnibus: $TAG_NAME"
|
||||||
LATEST_SHA=$(gh api repos/Infisical/infisical-omnibus/git/refs/heads/main --jq '.object.sha')
|
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 \
|
gh api repos/Infisical/infisical-omnibus/git/refs \
|
||||||
--method POST \
|
--method POST \
|
||||||
--field ref="refs/tags/v0.150.0-nightly-20250926" \
|
--field ref="refs/tags/$TAG_NAME" \
|
||||||
--field sha="$LATEST_SHA"
|
--field sha="$LATEST_SHA"
|
||||||
|
|
||||||
|
echo "Successfully created tag $TAG_NAME"
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# --field ref="refs/tags/${{ github.ref_name }}" \
|
# --field ref="refs/tags/${{ github.ref_name }}" \
|
||||||
Reference in New Issue
Block a user