Skip to content

Commit 909b0bd

Browse files
Merge pull request #408 from kalaiyarasiganeshalingam/main
Add codecov report upload retry step
2 parents af6687e + 253128c commit 909b0bd

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,41 @@ jobs:
1919
packageUser: ${{ github.actor }}
2020
packagePAT: ${{ secrets.GITHUB_TOKEN }}
2121
run: ./gradlew build
22-
- name: Generate Codecov Report
22+
- name: Generate Codecov Report Try 1
2323
if: github.event_name == 'pull_request'
24+
id: uploadReport1
25+
uses: codecov/codecov-action@v2
26+
continue-on-error: true
27+
with:
28+
fail_ci_if_error: true
29+
- name: Wait after upload failure
30+
if: steps.uploadReport1.outcome == 'failure'
31+
run: |
32+
sleep 300s
33+
- name: Generate CodeCov Report Try 2
34+
if: steps.uploadReport1.outcome == 'failure'
35+
id: uploadReport2
36+
uses: codecov/codecov-action@v2
37+
continue-on-error: true
38+
with:
39+
fail_ci_if_error: true
40+
- name: Wait after upload failure
41+
if: steps.uploadReport2.outcome == 'failure'
42+
run: |
43+
sleep 300s
44+
- name: Generate CodeCov Report Try 3
45+
if: steps.uploadReport2.outcome == 'failure'
46+
id: uploadReport3
47+
uses: codecov/codecov-action@v2
48+
continue-on-error: true
49+
with:
50+
fail_ci_if_error: true
51+
- name: Wait after upload failure
52+
if: steps.uploadReport3.outcome == 'failure'
53+
run: |
54+
sleep 300s
55+
- name: Generate CodeCov Report Try 4
56+
if: steps.uploadReport3.outcome == 'failure'
2457
uses: codecov/codecov-action@v2
2558
windows-build:
2659
name: Build on Windows

ballerina/Ballerina.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
org = "ballerina"
33
name = "regex"
4-
version = "1.3.2"
4+
version = "1.3.3"
55
authors = ["Ballerina"]
66
keywords = ["regex", "string", "regular expressions"]
77
repository = "https://github.com/ballerina-platform/module-ballerina-regex"

ballerina/Dependencies.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ modules = [
2828
[[package]]
2929
org = "ballerina"
3030
name = "regex"
31-
version = "1.3.2"
31+
version = "1.3.3"
3232
dependencies = [
3333
{org = "ballerina", name = "jballerina.java"},
3434
{org = "ballerina", name = "lang.string"},

0 commit comments

Comments
 (0)