Update fsfe/reuse-action action to v5 #380
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
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | |
# SPDX-License-Identifier: MIT | |
name: Format | |
on: | |
pull_request: | |
jobs: | |
shfmt: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Apply format | |
run: go run mvdan.cc/sh/v3/cmd/shfmt@latest -i 2 -ci -bn -l -w . | |
- name: Check diff | |
run: git diff --exit-code | |