Skip to content

chore(deps): update dependency defenseunicorns/uds-k3d to v0.11.0 #104

chore(deps): update dependency defenseunicorns/uds-k3d to v0.11.0

chore(deps): update dependency defenseunicorns/uds-k3d to v0.11.0 #104

name: Filter
# This workflow is triggered on pull requests to the main branch.
on:
pull_request:
paths:
- ".github/**"
- "src/**"
- "tasks/**"
# Permissions for the GITHUB_TOKEN used by the workflow.
permissions:
id-token: write # Needed for OIDC-related operations.
contents: read # Allows reading the content of the repository.
pull-requests: read # Allows reading pull request metadata.
# Default settings for all run commands in the workflow jobs.
defaults:
run:
shell: bash -e -o pipefail {0} # Ensures that scripts fail on error and pipefail is set.
jobs:
# This job checks if there are changes in specific paths source packages.
check-paths:
runs-on: ubuntu-latest
name: Select Jobs
outputs:
packages: ${{ steps.path-filter.outputs.changes }}
steps:
- name: Checkout the code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# Uses a custom action to filter paths for source packages.
- name: Check src paths
id: path-filter
uses: dorny/paths-filter@v2
with:
filters: .github/filters.yaml
# This job triggers a separate workflow for each changed source package, if any.
run-package-test:
needs: check-paths
name: Schedule
strategy:
matrix:
package: ${{ fromJSON(needs.check-paths.outputs.packages) }}
uses: ./.github/workflows/test.yaml
with:
package: ${{ matrix.package }}
secrets: inherit # Inherits all secrets from the parent workflow.