Skip to content

My git helper

My git helper #4

Workflow file for this run

name: "My git helper"
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sync-files:
name: "Run sync"
runs-on: ubuntu-22.04
outputs:
message: ${{ steps.commit_message.outputs.message }}
steps:
- name: "Checkout source repository"
uses: actions/checkout@v4
- name: "Run command"
run: |
for a in ./programs/*/*-pake; do
rm -f "$a"
done
- name: "Push to Source"
run: |
git config --global user.name "web-flow"
git config --global user.email "noreply@github.com"
git add programs
if git diff-index --quiet HEAD; then
echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
else
git commit -m "Remove *-pake apps"
git push && echo "Sync to Source succeeded" >> $GITHUB_STEP_SUMMARY
fi