Skip to content

IS-1488: Added unleash api token file #3

IS-1488: Added unleash api token file

IS-1488: Added unleash api token file #3

name: Unleash api-tokens
on:
merge_group:
pull_request:
paths:
- .github/workflows/unleash-apitoken.yaml
- .nais//unleash/unleash-apitoken-dev.yaml
- .nais//unleash/unleash-apitoken-prod.yaml
push:
branches:
- main
paths:
- .github/workflows/unleash-apitoken.yaml
- .nais//unleash/unleash-apitoken-dev.yaml
- .nais/unleash/unleash-apitoken-dev.yaml
jobs:
apply-apitoken-unleash:

Check failure on line 19 in .github/workflows/unleash-apitoken.yaml

View workflow run for this annotation

GitHub Actions / Unleash api-tokens

Invalid workflow file

The workflow is not valid. .github/workflows/unleash-apitoken.yaml (Line: 19, Col: 3): The workflow must contain at least one job with no dependencies.
name: Apply ApiToken for Unleash to cluster
runs-on: ubuntu-latest
needs: [ci]
if: github.event_name == 'push' && github.ref_name == 'main'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: deploy to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/unleash/unleash-apitoken-dev.yaml
- name: deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .nais/unleash/unleash-apitoken-prod.yaml