Skip to content

Commit f117d72

Browse files
authored
Merge pull request #65 from Bandwidth/DX-3099
DX-3099 Update `actions/checkout` and `actions/setup-*`
2 parents c7c062f + 864cce5 commit f117d72

File tree

3 files changed

+62
-62
lines changed

3 files changed

+62
-62
lines changed

.github/actions/deploy/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# action.yml
2-
name: 'Deploy'
3-
description: 'Deploys the ruby sdk to Rubygems'
2+
name: "Deploy"
3+
description: "Deploys the ruby sdk to Rubygems"
44
runs:
5-
using: 'docker'
6-
image: 'Dockerfile'
5+
using: "docker"
6+
image: "Dockerfile"

.github/workflows/deploy.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@ jobs:
1111
if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'main' }}
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v2
14+
- name: Checkout
15+
uses: actions/checkout@v3
1616

17-
- name: Setup Ruby
18-
uses: ruby/setup-ruby@v1
19-
with:
20-
ruby-version: '3.0'
17+
- name: Setup Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: "3.0"
2121

22-
- name: Install Packages
23-
run: bundle install
22+
- name: Install Packages
23+
run: bundle install
2424

25-
- name: Test
26-
env:
27-
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
28-
BW_USERNAME: ${{ secrets.BW_USERNAME }}
29-
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
30-
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
31-
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
32-
BW_NUMBER: ${{ secrets.BW_NUMBER }}
33-
USER_NUMBER: ${{ secrets.USER_NUMBER }}
34-
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
35-
run: rake
36-
37-
- name: Deploy to Rubygems
38-
uses: ./.github/actions/deploy
39-
env:
40-
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
41-
- uses: Bandwidth/[email protected]
42-
if: always()
43-
with:
44-
job-status: ${{ job.status }}
45-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
46-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
25+
- name: Test
26+
env:
27+
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
28+
BW_USERNAME: ${{ secrets.BW_USERNAME }}
29+
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
30+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
31+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
32+
BW_NUMBER: ${{ secrets.BW_NUMBER }}
33+
USER_NUMBER: ${{ secrets.USER_NUMBER }}
34+
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
35+
run: rake
36+
37+
- name: Deploy to Rubygems
38+
uses: ./.github/actions/deploy
39+
env:
40+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
41+
- uses: Bandwidth/[email protected]
42+
if: always()
43+
with:
44+
job-status: ${{ job.status }}
45+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
46+
slack-channel: ${{ secrets.SLACK_CHANNEL }}

.github/workflows/test.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,37 @@ jobs:
1515
name: Test
1616
runs-on: ${{ matrix.os }}
1717
strategy:
18-
matrix:
18+
matrix:
1919
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04]
2020
ruby-version: [2.6, 2.7, 3.0]
2121
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v3
22+
- name: Checkout
23+
uses: actions/checkout@v3
2424

25-
- name: Set up Ruby
26-
uses: ruby/setup-ruby@v1
27-
with:
28-
ruby-version: ${{ matrix.ruby-version }}
29-
30-
- name: Install Packages
31-
run: bundle install
25+
- name: Set up Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby-version }}
3229

33-
- name: Test
34-
env:
35-
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
36-
BW_USERNAME: ${{ secrets.BW_USERNAME }}
37-
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
38-
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
39-
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
40-
BW_NUMBER: ${{ secrets.BW_NUMBER }}
41-
USER_NUMBER: ${{ secrets.USER_NUMBER }}
42-
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
43-
run: rake
30+
- name: Install Packages
31+
run: bundle install
4432

45-
- name: Notify Slack of Failures
46-
uses: Bandwidth/[email protected]
47-
if: failure() && !github.event.pull_request.draft
48-
with:
49-
job-status: ${{ job.status }}
50-
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
51-
slack-channel: ${{ secrets.SLACK_CHANNEL }}
33+
- name: Test
34+
env:
35+
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
36+
BW_USERNAME: ${{ secrets.BW_USERNAME }}
37+
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
38+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
39+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
40+
BW_NUMBER: ${{ secrets.BW_NUMBER }}
41+
USER_NUMBER: ${{ secrets.USER_NUMBER }}
42+
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
43+
run: rake
44+
45+
- name: Notify Slack of Failures
46+
uses: Bandwidth/[email protected]
47+
if: failure() && !github.event.pull_request.draft
48+
with:
49+
job-status: ${{ job.status }}
50+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
51+
slack-channel: ${{ secrets.SLACK_CHANNEL }}

0 commit comments

Comments
 (0)