CI: add pre-commit
and validate actions and workflows schema
#13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test gh-metadata action | |
on: | |
push: | |
branches: [ main ] | |
paths: [ gh-metadata/** ] | |
pull_request: | |
branches: [ main ] | |
paths: [ gh-metadata/** ] | |
defaults: | |
run: | |
working-directory: gh-metadata | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Test new version of the action | |
uses: ./gh-metadata | |
id: metadata | |
- name: Display outputs | |
run: echo "${{ toJson(steps.metadata.outputs) }}" |