Skip to content

v0.2.0

v0.2.0 #25

Workflow file for this run

name: Release
on:
release:
types: [published]
push:
tags:
- 'v*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
fetch-depth: [0, 1]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: ${{ matrix.fetch-depth }}
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files.outputs) }}'
shell:
bash
- name: Get changed files in the .github folder
id: changed-files-specific
uses: tj-actions/changed-files@v42
with:
files: .github/**
- name: Run step if any file(s) in the .github folder change
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: |
echo "One or more files in the .github folder has changed."
echo "List all the files that have changed: ${{ steps.changed-files-specific.outputs.all_changed_files }}"