add diff output command
Some checks failed
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Failing after 5s
Some checks failed
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Failing after 5s
This commit is contained in:
parent
eddbcaffdc
commit
70a0590abb
43
.gitea/workflows/diff-output.yaml
Normal file
43
.gitea/workflows/diff-output.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
name: Diff output
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
files:
|
||||
required: true
|
||||
type: string
|
||||
repository:
|
||||
required: true
|
||||
type: string
|
||||
ref:
|
||||
required: true
|
||||
type: string
|
||||
image_name:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
diff:
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
is_changed: ${{ steps.changed-files-specific.any_changed }}
|
||||
|
||||
steps:
|
||||
- name: Echo test
|
||||
run: echo "${{ inputs.files }}"
|
||||
|
||||
- name: Checkout Code to Build
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ inputs.repository }}
|
||||
ref: ${{ inputs.ref }}
|
||||
token: ${{ secrets.token }}
|
||||
- name: Get changed files in the doorman-homeassistant folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47
|
||||
with:
|
||||
files: ${{ inputs.files }}
|
||||
|
||||
- name: Run step if any file(s) in the docs folder change
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
run: echo "should build + deploy doorman-homeassistant"
|
||||
Loading…
x
Reference in New Issue
Block a user