File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 79
79
# NOTE: This does not use the primary Gemfile at all.
80
80
- name : Install Root Appraisal
81
81
run : bundle
82
- - name : Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal }}
82
+
83
+ - name : [Attempt 1] Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal }}
84
+ id : bundleAttempt1
85
+ run : bundle exec appraisal ${{ matrix.appraisal }} bundle
86
+ # Continue to the next step on failure
87
+ continue-on-error : true
88
+
89
+ # Effectively an automatic retry of the previous step.
90
+ - name : [Attempt 2] Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal }}
91
+ id : bundleAttempt2
92
+ # If bundleAttempt1 failed, try again here; Otherwise skip.
93
+ if : steps.bundleAttempt1.outcome == 'failure'
83
94
run : bundle exec appraisal ${{ matrix.appraisal }} bundle
95
+
84
96
- name : Tests for ${{ matrix.ruby }}@${{ matrix.appraisal }} via ${{ matrix.exec_cmd }}
85
97
run : bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
You can’t perform that action at this time.
0 commit comments