Skip to content

Commit

Permalink
Update srcinfo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored May 3, 2024
1 parent fea786c commit 45f8722
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/srcinfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ jobs:
run: |
wget https://raw.githubusercontent.com/oklopfer/debs/master/misc/srcinfo.sh
sudo chmod +x ./srcinfo.sh
- name: Run
run: |
for i in $(git diff HEAD~1 --name-only | grep -E '^packages/[^/]+/[^/]+\.pacscript$'); do
./srcinfo.sh "$i" | tee ${i%/*.pacscript}/.SRCINFO > /dev/null
done
rm ./srcinfo.sh
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
- name: Push
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git add packages/*/.SRCINFO
git commit -m "update .SRCINFO" && git push origin HEAD:master || echo "Nothing to push."

0 comments on commit 45f8722

Please sign in to comment.