Skip to content

Commit

Permalink
Update Build-Linux-x86.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods authored May 18, 2024
1 parent 8acb83e commit cc08dbe
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/Build-Linux-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,16 @@ jobs:
- name: Commit and push changes
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x86
git add ./dist/agentc-linux-x86
git commit -m "Add agentc-linux-x86 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
rm -rf fswatch-1.14.0.tar.gz fswatch-1.14.0/ libwebsockets-4.0.20.tar.gz libwebsockets-4.0.20/ xxHash-0.8.1/ xxhash-0.8.1.tar.gz
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x64
git add ./AgentC/agentc
git add ./dist/agentc-linux-x64
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
else
git commit -m "Update AgentC/agentc and add agentc-linux-x64 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main
fi

0 comments on commit cc08dbe

Please sign in to comment.