Skip to content

Commit

Permalink
Fix self-hosted runner stop script execution by decoding base64 and u…
Browse files Browse the repository at this point in the history
…sing bash
  • Loading branch information
mauro-balades committed Jan 15, 2025
1 parent 899567b commit d757c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ jobs:
if: ${{ inputs.create_release && inputs.update_branch == 'release' }}
run: |
echo "Stopping self-hosted runner"
echo "${{ secrets.SELF_HOSTED_RUNNER_STOP_SCRIPT }}" > stop.sh
echo "${{ secrets.SELF_HOSTED_RUNNER_STOP_SCRIPT }}" | base64 -d > stop.sh
sudo chmod +x stop.sh
./stop.sh > /dev/null 2>&1 &
bash ./stop.sh > /dev/null 2>&1 &
- name: Remove self-hosted runner script
if: always() && ${{ inputs.create_release && inputs.update_branch == 'release' }}
Expand Down

0 comments on commit d757c36

Please sign in to comment.