Bump softprops/action-gh-release from 1 to 2 #303
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: Check and Apply Clang-Format | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
format: | |
if: github.actor != 'dependabot[bot]' && startsWith(github.ref, 'refs/tags/') != true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Import GPG key | |
if: github.repository_owner == 'mmcesim' | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Clang Format | |
run: chmod +x ./misc/format && ./misc/format | |
- name: Commit Files | |
if: github.repository_owner == 'mmcesim' | |
run: | | |
git config --local user.email "bot@mmcesim.org" | |
git config --local user.name "mmcesim-bot" | |
git commit -am"Apply Clang-Format" || echo "Clang-Format already satisfied." | |
- name: Push Changes | |
if: github.repository_owner == 'mmcesim' && !startsWith(github.ref, 'refs/heads/gh-readonly-queue/') | |
uses: ad-m/github-push-action@master | |
with: | |
branch: ${{ github.ref }} |