thaw/.github/workflows/get-melt-changed.yml

36 lines
1 KiB
YAML
Raw Normal View History

2023-10-11 10:35:44 +08:00
name: Get Melt Changed Call
on:
workflow_call:
outputs:
melt_changed:
description: "Melt Changed"
value: ${{ jobs.create.outputs.melt_changed }}
jobs:
create:
name: Detect Source Change
runs-on: ubuntu-latest
outputs:
melt_changed: ${{ steps.set-source-changed.outputs.melt_changed }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get source files that changed
id: changed-source
uses: tj-actions/changed-files@v36
with:
files: |
2023-10-11 11:07:57 +08:00
demo
2023-10-11 10:35:44 +08:00
src
Cargo.toml
- name: List source files that changed
run: echo '${{ steps.changed-source.outputs.all_changed_files }}'
- name: Set melt_changed
id: set-source-changed
run: |
echo "melt_changed=${{ steps.changed-source.outputs.any_changed }}" >> "$GITHUB_OUTPUT"