mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-26 23:37:22 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.5.3...b4ffde65f46336ab88eb53be808477a3936bae11) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
name: verify_changes
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
is_docs_change:
|
|
description: "determines if the changes contains docs"
|
|
value: ${{ jobs.verify-doc-ui-changes.outputs.is_docs_change }}
|
|
is_ui_change:
|
|
description: "determines if the changes contain ui"
|
|
value: ${{ jobs.verify-doc-ui-changes.outputs.is_ui_change }}
|
|
|
|
jobs:
|
|
# verify-doc-ui-changes determines if the changes are only for docs (website) and/or ui
|
|
verify-doc-ui-changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
is_docs_change: ${{ steps.get-changeddir.outputs.is_docs_change }}
|
|
is_ui_change: ${{ steps.get-changeddir.outputs.is_ui_change }}
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
fetch-depth: 0 # Use fetch depth 0 for comparing changes to base branch
|
|
- name: Get changed directories
|
|
id: get-changeddir
|
|
env:
|
|
TYPE: ${{ github.event_name }}
|
|
REF_NAME: ${{ github.ref_name }}
|
|
BASE: ${{ github.base_ref }}
|
|
run: ./.github/scripts/verify_changes.sh ${{ env.TYPE }} ${{ env.REF_NAME }} ${{ env.BASE }}
|