Skip to content

Commit 1904996

Browse files
committed
combine into 1 job
1 parent d2678a0 commit 1904996

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 20
1313
strategy:
14+
max-parallel: 1
1415
matrix:
1516
java: [ 8, 11 ]
1617

@@ -24,6 +25,14 @@ jobs:
2425
- name: Run Unit Tests
2526
run: make test-docker version=${{ matrix.java }}
2627

28+
- name: Add & Commit
29+
if: matrix.java == '11'
30+
uses: EndBug/add-and-commit@v8.0.2
31+
with:
32+
add: 'pom.xml'
33+
default_author: 'github_actions'
34+
message: 'Chore: update sendgrid-java dependencies'
35+
2736
commit-dependencies:
2837
name: Commit Updated Dependencies
2938
if: success()
@@ -36,24 +45,17 @@ jobs:
3645
- name: Updating semver dependencies
3746
run: make update-deps
3847

39-
- name: Add & Commit
40-
uses: EndBug/add-and-commit@v8.0.2
41-
with:
42-
add: 'pom.xml'
43-
default_author: 'github_actions'
44-
message: 'Chore: update sendgrid-java dependencies'
45-
4648
notify-on-failure:
4749
name: Slack notify on failure
4850
if: failure()
49-
needs: [ update-dependencies-and-test, commit-dependencies ]
51+
needs: [ update-dependencies-and-test ]
5052
runs-on: ubuntu-latest
5153
steps:
5254
- uses: rtCamp/action-slack-notify@v2
5355
env:
5456
SLACK_COLOR: failure
5557
SLACK_ICON_EMOJI: ':github:'
56-
SLACK_MESSAGE: ${{ format('Update dependencies *{0}*, commit dependencies *{1}*, {2}/{3}/actions/runs/{4}', needs.update-dependencies-and-test.result, needs.commit-dependencies.result, github.server_url, github.repository, github.run_id) }}
58+
SLACK_MESSAGE: ${{ format('Update dependencies *{0}*, {2}/{3}/actions/runs/{4}', needs.update-dependencies-and-test.result, github.server_url, github.repository, github.run_id) }}
5759
SLACK_TITLE: Action Failure - ${{ github.repository }}
5860
SLACK_USERNAME: GitHub Actions
5961
SLACK_MSG_AUTHOR: twilio-dx

0 commit comments

Comments
 (0)