mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
⛑️ ci: Fix Helm Tag Sync Workflow Planning (#13451)
This commit is contained in:
parent
fb282a2afa
commit
e21146c044
2 changed files with 22 additions and 9 deletions
10
.github/workflows/helmcharts.yml
vendored
10
.github/workflows/helmcharts.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
id: chart-version
|
||||
env:
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
INPUT_CHART_TAG: ${{ inputs.chart_tag || '' }}
|
||||
INPUT_CHART_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.chart_tag || '' }}
|
||||
REF_NAME: ${{ github.ref_name }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
|
@ -41,9 +41,11 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
printf 'CHART_REF=refs/tags/%s\n' "$CHART_TAG" >> "$GITHUB_OUTPUT"
|
||||
printf 'CHART_TAG=%s\n' "$CHART_TAG" >> "$GITHUB_OUTPUT"
|
||||
printf 'CHART_VERSION=%s\n' "$CHART_VERSION" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
printf 'CHART_REF=refs/tags/%s\n' "$CHART_TAG"
|
||||
printf 'CHART_TAG=%s\n' "$CHART_TAG"
|
||||
printf 'CHART_VERSION=%s\n' "$CHART_VERSION"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
21
.github/workflows/sync-helm-chart-tags.yml
vendored
21
.github/workflows/sync-helm-chart-tags.yml
vendored
|
|
@ -12,19 +12,30 @@ on:
|
|||
type: string
|
||||
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: sync-helm-chart-tags
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
noop:
|
||||
name: Ignore non-main push
|
||||
if: github.event_name == 'push' && github.ref != 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
- name: Skip tag sync
|
||||
run: echo "Helm chart tag sync only runs on main pushes or manual dispatch."
|
||||
|
||||
sync:
|
||||
name: Sync chart tags
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
actions: write
|
||||
contents: write
|
||||
env:
|
||||
BASE_REF: refs/remotes/origin/main
|
||||
BACKFILL_FROM_VERSION: 1.9.0
|
||||
|
|
@ -34,8 +45,8 @@ jobs:
|
|||
GITHUB_SERVER_URL: ${{ github.server_url }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||
RELEASE_EXISTING_TAG: ${{ inputs.release_existing_tag || '' }}
|
||||
REPO_DIR: ${{ runner.temp }}/librechat
|
||||
RELEASE_EXISTING_TAG: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.release_existing_tag || '' }}
|
||||
REPO_DIR: /tmp/librechat-sync
|
||||
TAG_PREFIX: chart-
|
||||
steps:
|
||||
- name: Fetch main and tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue