Skip to content

Commit

Permalink
Update: Switch from master to main branch (#1434)
Browse files Browse the repository at this point in the history
Going forward, we are adopting main as our default branch,

This commit updates the workflows YAML files, replacing master with  main
branch
  • Loading branch information
iokpala authored Feb 17, 2022
1 parent a2fe2c7 commit 8c00080
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build, push to AWS ECR, and deploy
on:
push:
branches:
- master
- main

env:
AWS_REGION: ca-central-1
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
app_id: ${{ secrets.PRBOT_APP_ID }}
private_key: ${{ secrets.PRBOT_PRIVATE_KEY }}

- uses: cds-snc/notification-pr-bot@master
- uses: cds-snc/notification-pr-bot@main
env:
TOKEN: ${{ steps.notify-pr-bot.outputs.token }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lambda_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build and push lambda image to production
on:
workflow_dispatch:
push:
branches: [master]
branches: [main]

env:
REGISTRY: ${{ secrets.PRODUCTION_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lambda_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build, push, and deploy lambda image to staging
on:
workflow_dispatch:
push:
branches: [master]
branches: [main]

env:
REGISTRY: ${{ secrets.STAGING_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Run performance tests
run: /bin/bash -c "pip install -r requirements_for_test.txt && locust --headless --config tests-perf/locust/locust.conf -f tests-perf/locust/locust-notifications.py"
- name: Notify Slack channel if this performance test job fails
if: ${{ failure() && github.ref == 'refs/heads/master' }}
if: ${{ failure() && github.ref == 'refs/heads/main' }}
run: |
json="{'text':'Scheduled CI Performance testing failed: <https://github.com/cds-snc/notification-api/actions|GitHub actions>'}"
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion .github/workflows/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ jobs:
name: seekret-scanning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- name: docker://cdssnc/seekret-github-action
uses: docker://cdssnc/seekret-github-action
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Run tests
run: /bin/bash -c "pip install -r requirements_for_test.txt && make test"
- name: Notify Slack channel if this job fails
if: ${{ failure() && github.ref == 'refs/heads/master' }}
if: ${{ failure() && github.ref == 'refs/heads/main' }}
run: |
json="{'text':'Scheduled CI testing failed: <https://github.com/cds-snc/notification-api/actions|GitHub actions>'}"
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 8c00080

Please sign in to comment.