mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-13 12:45:13 +00:00
fix: trigger deploy-website workflow via workflow_run instead of push
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
This commit is contained in:
21
.github/workflows/deploy-website.yml
vendored
21
.github/workflows/deploy-website.yml
vendored
@@ -4,19 +4,13 @@
|
|||||||
name: Deploy Website to GitHub Pages
|
name: Deploy Website to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs after the Publish to main workflow completes successfully.
|
||||||
push:
|
# Note: pushes made by GITHUB_TOKEN do not trigger push-based workflows,
|
||||||
branches: ["main"]
|
# so workflow_run is required to chain off the publish workflow.
|
||||||
paths:
|
workflow_run:
|
||||||
- "website/**"
|
workflows: ["Publish to main"]
|
||||||
- "agents/**"
|
types:
|
||||||
- "prompts/**"
|
- completed
|
||||||
- "instructions/**"
|
|
||||||
- "skills/**"
|
|
||||||
- "plugins/**"
|
|
||||||
- "cookbook/**"
|
|
||||||
- "eng/generate-website-data.mjs"
|
|
||||||
- ".github/workflows/deploy-website.yml"
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -36,6 +30,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
# Build job
|
# Build job
|
||||||
build:
|
build:
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user