Skip to content

Bump actions/checkout from 3 to 4 #15

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #15

Workflow file for this run

---
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