The EchoLayer GitHub Component Discovery action is available to you inside your existing workflows. You can add it to any workflow you want to use it in. Here’s an example of a workflow that will run the action on every push to the main branch of your repository:
name: Sync EchoLayer
on: [merge_group, workflow_dispatch, push]
jobs:
echolayer_pipeline:
runs-on: ubuntu-latest
name: Sync
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sync Backstage Catalog
uses: echolayer/echolayer-pipeline-action@HEAD
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
apiPath: "https://api.echolayer.com/api"
apiKey: ${{ secrets.ECHOLAYER_API_KEY }}
This environment variable is provided by GitHub and is required for the action to run. You can read more about it here.
This environment variable calls for the API path for your EchoLayer instance. This is a required variable. If you are using the hosted version of EchoLayer, you can use the value https://api.echolayer.com/api
.
This environment variable calls for your EchoLayer API key which you can obtain by following the steps below. This is a required variable.
-
Visit https://app.echolayer.com to create your organization with EchoLayer. We only ask for a name for your org. Yes, that’s really it.
👉 You’ll need to authenticate with GitHub prior to this. We only ask for your email address so we can create a user account in EchoLayer for you.
-
Once created, you’ll be redirected to the homepage for your organization in EchoLayer. Click on the link to visit the API Key page
- Generate a new API key
- Click the copy button
- Add the apiKey to a Repository Secret named ECHOLAYER_API_KEY
Make changes to files in /src
Run npm run build
cp .env.example .env
Set ECHOLAYER_API_TOKEN
or update INPUT_APIKEY
with your API key
Run npm run dev
Other input variables can be set in .env
with INPUT_<uppercase_name>