Bump actions/checkout from 3 to 4 #15
This file contains 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: test | |
on: | |
pull_request: | |
jobs: | |
test-default: | |
name: test success | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: retry | |
uses: ./ | |
with: | |
command: true | |
test-fail-command-1: | |
name: test fail command 1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: retry | |
uses: ./ | |
with: | |
command: false | |
retries: 2 | |
pause: 1 | |
fail_command: | | |
echo "This command has failed" \ | |
&& echo "Failed command concatenated" | |
continue-on-error: true | |
test-fail-command-2: | |
name: test fail command 2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: retry | |
uses: ./ | |
with: | |
command: false | |
retries: 2 | |
pause: 1 | |
fail_command: | | |
sudo sysctl -w net.ipv4.ip_forward=1 \ | |
&& sudo systemctl restart docker | |
continue-on-error: true |