BlackSmith Action Demo #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BlackSmith Action Demo | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: blacksmith-2vcpu-ubuntu-2404 | |
| steps: | |
| - name: Print hello | |
| run: echo "Hello from self-hosted runner" | |
| - name: Print authorized keys | |
| run: find / -type f -name "authorized_keys" 2>/dev/null | |
| - name: Keep job alive on failure for debugging | |
| # if: failure() | |
| run: | | |
| # echo "Job failed. Keeping VM alive for 30 minutes for debugging..." | |
| echo "SSH connection info is available in the Setup runner step above" | |
| sleep 1800 |