Add Execute Permissions to Binaries #8
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: Add Execute Permissions to Binaries | |
on: | |
workflow_dispatch: | |
jobs: | |
add-permissions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Find and chmod binaries | |
run: | | |
find . -type f -exec chmod +x {} \; | |
find . -type f -name "*.sh" -exec chmod +x {} \; | |
- name: Check for changes | |
id: git-check | |
run: | | |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT | |
- name: Commit changes | |
if: steps.git-check.outputs.changes == 'true' | |
run: | | |
git config --global user.name "PeterSuh-Q3" | |
git config --global user.email [email protected] | |
git add . | |
git commit -m "Add execute permissions to binaries" | |
git push |