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

36 lines
1 KiB
YAML
Raw Normal View History

2023-11-05 16:03:58 +08:00
name: Get Thaw Changed Call
2023-10-11 10:35:44 +08:00
on:
workflow_call:
outputs:
2023-11-05 16:03:58 +08:00
thaw_changed:
description: "Thaw Changed"
value: ${{ jobs.create.outputs.thaw_changed }}
2023-10-11 10:35:44 +08:00
jobs:
create:
name: Detect Source Change
runs-on: ubuntu-latest
outputs:
2023-11-05 16:03:58 +08:00
thaw_changed: ${{ steps.set-source-changed.outputs.thaw_changed }}
2023-10-11 10:35:44 +08:00
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 }}'
2023-11-05 16:03:58 +08:00
- name: Set thaw_changed
2023-10-11 10:35:44 +08:00
id: set-source-changed
run: |
2023-11-05 16:03:58 +08:00
echo "thaw_changed=${{ steps.changed-source.outputs.any_changed }}" >> "$GITHUB_OUTPUT"