Skip to content

Commit

Permalink
Update cmd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Aug 29, 2024
1 parent 99b2c57 commit 29576a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.issue.pull_request.head.ref }}
ref: ${{ github.ref_name }}

- name: Set rust version via common env file
run: cat .github/env >> $GITHUB_ENV
Expand Down Expand Up @@ -263,6 +263,7 @@ jobs:
env:
CMD: ${{ steps.get-pr-comment.outputs.group2 }} # to avoid "" around the command
run: |
echo "${{ toJSON(github) }}"
echo "Running command: $CMD"
git remote -v
python3 .github/scripts/cmd/cmd.py $CMD
Expand All @@ -275,11 +276,11 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull origin ${{ github.event.issue.pull_request.head.ref }}
git pull origin ${{ github.ref_name }}
git add .
git restore --staged Cargo.lock # ignore changes in Cargo.lock
git commit -m "Update from ${{ github.actor }} running command '${{ steps.get-pr-comment.outputs.group2 }}'" || true
git push origin ${{ github.event.issue.pull_request.head.ref }}
git push origin ${{ github.ref_name }}
else
echo "Nothing to commit";
Expand Down

0 comments on commit 29576a9

Please sign in to comment.