Skip to content

Commit

Permalink
Rename branch to main (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
guikcd authored Feb 15, 2022
1 parent fc79610 commit be5e104
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Trigger invocation
on:
push:
branches:
- 'master'
- 'main'

jobs:
build-and-deploy:
Expand All @@ -16,8 +16,8 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{secrets.AWS_ROLE_TO_ASSUME}}
aws-region: ${{secrets.AWS_REGION}}

- name: Invoke Lambda
run: |
Expand All @@ -26,4 +26,4 @@ jobs:
--function-name aws-managed-services-versions-fetch \
--invocation-type Event \
--payload '{ "output_file": "index.html" }' \
response.json
response.json
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: deploy to lambda
on:
push:
branches-ignore:
- 'master'
- 'main'
jobs:

build:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: ${{matrix.python-version}}

- name: Build zip
run: |
Expand All @@ -37,18 +37,18 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{secrets.AWS_ROLE_TO_ASSUME}}
aws-region: ${{secrets.AWS_REGION}}

- name: put zip on S3
run: |
aws s3 cp ./lambda.zip s3://${{ secrets.AWS_S3_BUCKET }}/
aws s3 cp ./lambda.zip s3://${{secrets.AWS_S3_BUCKET}}/
- name: default deploy
run: |
aws lambda update-function-code \
--function-name aws-managed-services-versions-fetch \
--s3-bucket ${{ secrets.AWS_S3_BUCKET }} \
--s3-bucket ${{secrets.AWS_S3_BUCKET}} \
--s3-key lambda.zip
- name: Invoke Lambda
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name: Lint Code Base
#############################
on:
push:
branches-ignore: [master]
branches-ignore: [main]

###############
# Set the Job #
Expand Down Expand Up @@ -47,6 +47,6 @@ jobs:
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_PYTHON_FLAKE8: false

0 comments on commit be5e104

Please # to comment.