Skip to content

Commit

Permalink
chore: included ci shim (#64)
Browse files Browse the repository at this point in the history
* chore: included ci shim

- included ci shim

Signed-off-by: naveensrinivasan <[email protected]>

* updated the paths to conditionals

Signed-off-by: naveensrinivasan <[email protected]>

* fixed the lint

Signed-off-by: naveensrinivasan <[email protected]>

* removed on pull request.

Signed-off-by: naveensrinivasan <[email protected]>

---------

Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan authored Mar 12, 2024
1 parent cda079f commit 728081f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-docs-shim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI Docs Shim

on:
pull_request:
paths:
- "**.md"
- "**.jpg"
- "**.png"
- "**.gif"
- "**.svg"
- "adr/**"
- "docs/**"
- ".gitignore"
- "renovate.json"
- ".release-please-config.json"
- "release-please-config.json"
- "oscal-component.yaml"
- "CODEOWNERS"
- "LICENSE"
- "CONTRIBUTING.md"
- "SECURITY.md"

jobs:
test:
runs-on: "ubuntu-latest"
timeout-minutes: 20
name: Deploy ${{ matrix.flavor }}
strategy:
matrix:
flavor: [upstream, registry1]
steps:
- name: Shim for Deploy ${{ matrix.flavor }}
run: |
echo "Documentation-only change detected; marking Deploy ${{ matrix.flavor }} as successful."
25 changes: 17 additions & 8 deletions .github/workflows/pull-request-conditionals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@ name: Conditionals
# This workflow is triggered on pull requests to the main branch.
on:
pull_request:
paths:
- ".github/**"
- "bundle/**"
- "values/**"
- "tasks/**"
- "tests/**"
- "tasks.yaml"
- "zarf.yaml"
paths-ignore:
- "**.md"
- "**.jpg"
- "**.png"
- "**.gif"
- "**.svg"
- "adr/**"
- "docs/**"
- ".gitignore"
- "renovate.json"
- ".release-please-config.json"
- "release-please-config.json"
- "oscal-component.yaml"
- "CODEOWNERS"
- "LICENSE"
- "CONTRIBUTING.md"
- "SECURITY.md"
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow).
types: [milestoned, opened, reopened, synchronize]

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Test package

on:
# Manual trigger
workflow_dispatch:

# Triggered by pull-request-conditionals.yaml
workflow_call:

# Abort prior jobs in the same workflow / PR
concurrency:
group: test-${{ github.ref }}-${{ inputs.package }}
Expand Down

0 comments on commit 728081f

Please sign in to comment.