Skip to content

Add repositories list when creating gh token #4

Add repositories list when creating gh token

Add repositories list when creating gh token #4

name: Deploy to SirenCon Kubernetes Cluster
on:
push:
branches:
- deploy/prod
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.WORKFLOW_TRIGGER_APP_ID }}
private-key: ${{ secrets.WORKFLOW_TRIGGER_SSH_PRIVATE_KEY }}
repositories:
- SirenCon/fm-apis

Check failure on line 21 in .github/workflows/deploy_sirencon.yml

View workflow run for this annotation

GitHub Actions / Deploy to SirenCon Kubernetes Cluster

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_sirencon.yml (Line: 21, Col: 13): A sequence was not expected
- SirenCon/fm-apis-deployment
- name: Invoke deployment workflow
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
DEPLOY_REVISION=$(git rev-parse --short HEAD)
DEPLOY_ENVIRONMENT=${BRANCH#deploy/}
gh auth status
gh workflow run deploy.yml \
--repo SirenCon/fm-apis-deployment \
--ref main \
--field deploy_revision=$DEPLOY_REVISION \
--field deploy_environment=$DEPLOY_ENVIRONMENT
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}