Skip to content

ci: check label

ci: check label #18

Workflow file for this run

name: Changed-files
on:
pull_request:
branches:
- main
jobs:
changed_files:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
outputs:
status: ${{ steps.check-labels.outputs.status }}
name: Test changed-files
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get javascore files that have changed
id: changed-files-javascore
uses: tj-actions/changed-files@v39
with:
files_yaml: |
ibc:
- 'contracts/javascore/ibc/**'
lightclients:
- contracts/javascore/lightclients/**
xcall-connection:
- contracts/javascore/xcall-connection/**
- name: Run step if test file(s) change
if: steps.changed-files-javascore.outputs.ibc_any_changed == 'true'
# run: |
# echo "$steps.changed-files-javascore.outputs.ibc_any_changed"
# echo "One or more test file(s) has changed."
# echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.ibc_all_changed_files }}"
- name: Run step if doc file(s) change
if: steps.changed-files-javascore.outputs.lightclients_any_changed == 'true'
run: |
echo "One or more doc file(s) has changed."
echo "List all the files that have changed: ${{ steps.changed-files-javascore.outputs.lightclients_all_changed_files }}"
- id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "semver:patch, semver:minor, semver:major"
exit_type: success
- name: check value
run: echo "{{steps.check-labels.outputs.labels}}"