Skip to content

Profinet Binding Addition to the table #103

Profinet Binding Addition to the table

Profinet Binding Addition to the table #103

Workflow file for this run

name: Prettifying
on:
pull_request:
branches: [main]
paths-ignore:
- "publication/**"
- "errata.html"
- "errata11.html"
- "ontology/*.html"
- "validation/tm-json-schema-validation.json"
- "context/td-context-1.1.jsonld"
- "visualization/*.png"
- "visualization/*.svg"
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Check if PR is from a fork
id: check_fork
run: echo "::set-output name=is_fork::${{ github.event.pull_request.head.repo.fork }}"
- name: Prettify code
id: prettify
uses: creyD/[email protected]
with:
dry: true
prettier_options: --write
commit_message: "chore: prettier"
continue-on-error: true
- name: Handle commit failure
if: ${{ steps.prettify.outcome == 'failure' && steps.check_fork.outputs.is_fork == 'true' }}
run: echo "Please run prettier locally"