Skip to content

Commit

Permalink
Update Build-Linux-x64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods authored May 18, 2024
1 parent 979eb27 commit 3fdaf18
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/Build-Linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ jobs:
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x64
- name: Check for changes
id: changes
run: |
if git diff --quiet HEAD; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.changes.outputs.has_changes == 'true'
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
git add ./dist
git commit -m "Add agentc-linux-x64 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main
- name: Check for changes
id: changes
run: |
if git diff --quiet HEAD -- ./dist/agentc-linux-x64; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.changes.outputs.has_changes == 'true'
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
git add ./dist/agentc-linux-x64
git commit -m "Add agentc-linux-x64 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main

0 comments on commit 3fdaf18

Please sign in to comment.