8000 Updates pick templar jobs to run daily · civitai/civitai@f9e0631 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updates pick templar jobs to run daily #1560

Updates pick templar jobs to run daily

Updates pick templar jobs to run daily #1560

Workflow file for this run

name: Docker Branch Stage Deploy
on:
pull_request:
branches:
- "main"
types: [labeled, opened, reopened, synchronize]
pull_request_review:
types: [submitted]
jobs:
build:
runs-on: ubuntu-latest
if: |
(
contains(github.event.pull_request.labels.*.name, 'deploy-stage') ||
contains(github.event.pull_request.labels.*.name, 'deploy-stage-0')
) && (
github.event.review.state == 'APPROVED' || (
startsWith(github.event.pull_request.head.ref, 'feature/') ||
startsWith(github.event.pull_request.head.ref, 'fix/')
)
)
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Trigger dev deploy
uses: convictional/trigger-workflow-and-wait@v1.6.1
if: contains(github.event.pull_request.labels.*.name, 'deploy-stage')
with:
owner: civitai
repo: civitai-deployment
workflow_file_name: deploy-stage.yml
github_token: ${{ secrets.GHA_WORKFLOW_TRIGGER }}
ref: main
client_payload: |
{ "branch": "${{ steps.extract_branch.outputs.branch }}" , "environment": "stage" }
wait_workflow: false
- name: Trigger dev deploy
uses: convictional/trigger-workflow-and-wait@v1.6.1
if: contains(github.event.pull_request.labels.*.name, 'deploy-stage-0')
with:
owner: civitai
repo: civitai-deployment
workflow_file_name: deploy-stage.yml
github_token: ${{ secrets.GHA_WORKFLOW_TRIGGER }}
ref: main
client_payload: |
{ "branch": "${{ steps.extract_branch.outputs.branch }}" , "environment": "stage-0" }
wait_workflow: false
0