Skip to content

Add onboarding resources for GitHub and bitbucket integration templates #1

Add onboarding resources for GitHub and bitbucket integration templates

Add onboarding resources for GitHub and bitbucket integration templates #1

name: Upload integration templates
on:
push:
branches:
- main
paths:
# we only want to run this workflow when changes are made to the integrations folder
- integrations/**
pull_request:
# when running the workflow manually upload to stg bucket
workflow_dispatch:
inputs:
bucket_environment:
description: 'Environment to deploy to, either stg or prod'
required: true
default: 'stg-01'
options:
- 'stg-01'
jobs:
upload-templates:

Check failure on line 22 in .github/workflows/upload-integration-templates.yaml

View workflow run for this annotation

GitHub Actions / Upload integration templates

Invalid workflow file

The workflow is not valid. .github/workflows/upload-integration-templates.yaml (Line: 22, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
needs: upload-integrations
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Configure AWS Credentials 🔒
id: aws-credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: resolve the aws s3 bucket name
id: resolve-bucket-name
run: |
if [[ "${{ github.event_name }}" == "push"; then
echo "bucket_name=advance-templates" >> $GITHUB_OUTPUT
else:
echo "bucket_name=advance-templates-${{ github.event.inputs.bucket_environment }}" >> $GITHUB_OUTPUT
fi
- name: Upload specifications to s3
run: aws s3 cp integrations/ "s3://${{ steps.resolve-bucket-name.output.bucket_name }}/integrations" --recursive