Skip to content

Update github-actions-demo.yml #6

Update github-actions-demo.yml

Update github-actions-demo.yml #6

name: 'Were only docs updated'

Check failure on line 1 in .github/workflows/github-actions-demo.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-actions-demo.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: Explore-GitHub-Actions
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
inputs:
commit-range:
description: 'commit range'
required: true
outputs:
were-only-docs-updated:
description: "Were only docs updated"
value: ${{ steps.were-only-docs-updated-id.outputs.were-only-docs-updated }}
runs:
using: "composite"
steps:
- id: were-only-docs-updated-id
shell: bash
run: |
echo "commit range: ${{ inputs.commit-range }}"
git diff --name-only ${{ inputs.commit-range }} | grep -qvE '(\.md$)|(^(docs|g11n-ws/docs))/' || {
echo "::set-output name=were-only-docs-updated::yes"
echo "were-only-docs-updated: yes."
exit
}
echo "::set-output name=were-only-docs-updated::no"
echo "were-only-docs-updated: no."