Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ concurrency:

jobs:
agent:
uses: ./.github/workflows/reusable/agent.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/agent.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
task: ${{ inputs.task }}
prompt: ${{ inputs.prompt }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:

jobs:
ci:
uses: ./.github/workflows/reusable/ci.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/ci.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
openci-ref: ${{ github.sha }}
registry: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ concurrency:

jobs:
deps:
uses: ./.github/workflows/reusable/deps.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/deps.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
runner: blacksmith-32vcpu-ubuntu-2404
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
&& github.event.workflow_run.name == 'ci'
&& github.event.workflow_run.conclusion == 'success')
|| (github.event_name == 'workflow_dispatch' && inputs.mode == 'stg')
uses: ./.github/workflows/reusable/stg.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/stg.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
app-name: ${{ vars.APP_NAME || github.event.repository.name }}
image-name: ${{ vars.IMAGE_NAME || github.event.repository.name }}
Expand All @@ -54,7 +54,7 @@ jobs:
&& github.event.workflow_run.name == 'release'
&& github.event.workflow_run.conclusion == 'success')
|| (github.event_name == 'workflow_dispatch' && inputs.mode == 'prd')
uses: ./.github/workflows/reusable/prd.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/prd.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
app-name: ${{ vars.APP_NAME || github.event.repository.name }}
image-name: ${{ vars.IMAGE_NAME || github.event.repository.name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:

jobs:
docs:
uses: ./.github/workflows/reusable/docs.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/docs.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
build-cmd: ${{ vars.DOCS_BUILD_CMD || '' }}
docs-path: ${{ vars.DOCS_DIR || 'docs' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-ops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
jobs:
lifecycle:
if: github.event_name == 'issues' || github.event_name == 'issue_comment'
uses: ./.github/workflows/reusable/issue.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/issue.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: lifecycle
runner: blacksmith-32vcpu-ubuntu-2404
Expand All @@ -46,7 +46,7 @@ jobs:

ingest:
if: github.event_name == 'repository_dispatch'
uses: ./.github/workflows/reusable/issue.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/issue.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: ingest
runner: blacksmith-32vcpu-ubuntu-2404
Expand All @@ -60,7 +60,7 @@ jobs:

maintenance:
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.mode == 'maintenance')
uses: ./.github/workflows/reusable/issue.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/issue.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: maintenance
runner: blacksmith-32vcpu-ubuntu-2404
Expand All @@ -74,7 +74,7 @@ jobs:

manual:
if: github.event_name == 'workflow_dispatch' && inputs.mode != 'maintenance'
uses: ./.github/workflows/reusable/issue.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/issue.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: ${{ inputs.mode }}
runner: blacksmith-32vcpu-ubuntu-2404
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/observability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ concurrency:
jobs:
observe-canary:
if: ${{ github.event_name == 'schedule' && github.event.schedule == '*/15 * * * *' }}
uses: ./.github/workflows/reusable/observability.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/observability.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: canary-watch
runner: blacksmith-32vcpu-ubuntu-2404
secrets: inherit

observe-drift:
if: ${{ github.event_name == 'schedule' && github.event.schedule == '0 4 * * *' }}
uses: ./.github/workflows/reusable/observability.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/observability.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: terraform-drift
infra-dir: ${{ vars.INFRA_DIR || 'infrastructure' }}
Expand All @@ -50,7 +50,7 @@ jobs:
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|| github.event_name == 'repository_dispatch'
|| (github.event_name == 'workflow_dispatch' && inputs.mode == 'verify-fix')
uses: ./.github/workflows/reusable/observability.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/observability.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: verify-fix
runner: blacksmith-32vcpu-ubuntu-2404
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
if: |
!contains(fromJSON('["pr-review","flag-audit"]'),
needs.resolve-mode.outputs.mode)
uses: ./.github/workflows/reusable/maintenance.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/maintenance.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: ${{ needs.resolve-mode.outputs.mode }}
openci-ref: ${{ needs.resolve-mode.outputs.openci-ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:

jobs:
checks:
uses: ./.github/workflows/reusable/pr.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/pr.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
enable-ai-review: true
enable-eval: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
release:
uses: ./.github/workflows/reusable/release.yml
uses: YiAgent/OpenCI/.github/workflows/reusable/release.yml@d280a64a392b7f1a3e906246286ca983e610f920
with:
mode: ${{ inputs.mode || 'both' }}
image-name: ${{ vars.IMAGE_NAME || github.event.repository.name }}
Expand Down
3 changes: 2 additions & 1 deletion tests/actions/on-issue-routing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ setup() {
}

@test "manual job passes the dispatch input mode dynamically" {
# shellcheck disable=SC2016 # \$ is for grep BRE, not shell expansion
grep -q 'mode: \${{ inputs.mode }}' "$ENTRY"
}

Expand All @@ -97,7 +98,7 @@ setup() {

@test "all four jobs call the same reusable workflow reusable/issue.yml" {
local count
count=$(grep -c 'uses: \.\/\.github\/workflows\/reusable\/issue\.yml' "$ENTRY")
count=$(grep -c 'uses: YiAgent/OpenCI/.github/workflows/reusable/issue\.yml' "$ENTRY")
[ "$count" -eq 4 ]
}

Expand Down
2 changes: 1 addition & 1 deletion tests/actions/on-pr-routing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ setup() {
# ---------------------------------------------------------------------------

@test "single checks job calls reusable pr.yml workflow" {
grep -q 'uses: \.\/\.github\/workflows\/reusable\/pr\.yml' "$ENTRY"
grep -q 'uses: YiAgent/OpenCI/.github/workflows/reusable/pr\.yml' "$ENTRY"
}

@test "checks job enables AI review" {
Expand Down
Loading