diff --git a/.github/workflows/tag_adapters.yml b/.github/workflows/tag_adapters.yml index f83d9de..9c0f045 100644 --- a/.github/workflows/tag_adapters.yml +++ b/.github/workflows/tag_adapters.yml @@ -34,10 +34,14 @@ jobs: - name: Files modified id: check - uses: tj-actions/changed-files@v26.1 - with: - files: | - ./adapters/${{ matrix.adapter }}/* + run: | + any_changed="false" + + if git diff --name-only HEAD^ | grep -q "^adapters/${{ matrix.adapter }}/"; then + any_changed="true" + fi + + echo "any_changed=$any_changed" >> $GITHUB_OUTPUT - name: Config Git User if: steps.check.outputs.any_changed == 'true' diff --git a/adapters/slog/options.go b/adapters/slog/options.go index 707c5f7..9ea1f0c 100644 --- a/adapters/slog/options.go +++ b/adapters/slog/options.go @@ -14,6 +14,7 @@ type options struct { handler slog.Handler } +// Option defines the signature for the options. type Option func(*options) // WithLevel sets the log level for the logger.