Skip to content

[33] scheduled build (#35) #9

[33] scheduled build (#35)

[33] scheduled build (#35) #9

name: deploy-aws-lambda
on:
push:
branches:
- deploy-test
- main
jobs:
call-test-workflow:
uses: GNS-Science/nshm-github-actions/.github/workflows/python-run-tests.yml@main

Check failure on line 11 in .github/workflows/deploy-to-aws.yaml

View workflow run for this annotation

GitHub Actions / deploy-aws-lambda

Invalid workflow file

The workflow is not valid. In .github/workflows/deploy-to-aws.yaml (Line: 11, Col: 11): Error from called workflow GNS-Science/nshm-github-actions/.github/workflows/python-run-tests.yml@main: Unexpected tag '!inputs.delete-poetry-lock'
with:
operating-systems: "['ubuntu-latest']"
python-versions: "['3.10']"
secrets: inherit
deploy:
needs: call-test-workflow
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and configure Poetry
uses: GNS-Science/install-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: upgrade NPM
run: npm install --location=global npm@latest
# - name: Verify NPM
# run: npm doctor
- name: Install Dependencies
run: npm install
- name: List packages
run: npm ls
- name: Serverless Doctor
run: npm run-script sls_doctor
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-2
- name: Serverless Deploy ....
env:
ENABLE_METRICS: 0
run: |
if [[ "${{github.base_ref}}" == "main" || "${{github.ref}}" == 'refs/heads/main' ]]; then
STAGE=prod npm run-script deploy
else
STAGE=test npm run-script deploy
fi