Fixed stoping self-hosted release runners

Signed-off-by: mr. m  <91018726+mauro-balades@users.noreply.github.com>
This commit is contained in:
mr. m
2025-01-15 11:36:01 +01:00
committed by GitHub
parent c0d64f91c0
commit 7b90548f88

View File

@@ -436,12 +436,12 @@ jobs:
sudo ./aws/install --update
- name: Stop self-hosted runner
if: always()
if: ${{ inputs.create_release && inputs.update_branch == 'release' }}
run: |
echo "Stopping self-hosted runner"
echo "${{ secrets.SELF_HOSTED_RUNNER_STOP_SCRIPT }}" > stop.sh
sudo chmod +x stop.sh
./stop.sh
./stop.sh > /dev/null 2>&1 &
- name: Remove self-hosted runner script
if: always() && ${{ inputs.create_release && inputs.update_branch == 'release' }}