Skip to content

pipeline health POC

pipeline health POC #7

Workflow file for this run

name: Preview or update Pulumi app nf-core/github-repos/prod
on:
push:
branches:
- main
paths:
- "pulumi/github/repos/**/*"
pull_request:
branches:
- main
paths:
- "pulumi/github/repos/**/*"
# These are the environment variables that jobs in the workflow have access to.
# By defining them here, all jobs/steps will have access to these variables.
env:
# IMPORTANT! You must map the env vars for your cloud provider here even though you add them as secrets
# to this repository.
# See the setup page for cloud providers here: https://www.pulumi.com/docs/intro/cloud-providers/.
# For example, if you are using AWS, then you should add the following:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_STACK_NAME: nf-core/github-repos/prod
PULUMI_WORKING_DIRECTORY: pulumi/github/repos/
jobs:
pulumi:
name: Pulumi
runs-on: ubuntu-latest
steps:
# Turnstyle is used to prevent multiple push jobs from running at the same time. We
# limit it to push jobs to allow PR jobs to run concurrently.
- name: Turnstyle
if: ${{ github.event_name == 'push' }}
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v5
cache: 'pip'

Check failure on line 44 in .github/workflows/repos.yml

View workflow run for this annotation

GitHub Actions / Preview or update Pulumi app nf-core/github-repos/prod

Invalid workflow file

The workflow is not valid. .github/workflows/repos.yml (Line: 44, Col: 9): Unexpected value 'cache'
- run: pip install -r requirements.txt
working-directory: ${{ env.PULUMI_WORKING_DIRECTORY }}
- name: PR previews
if: ${{ github.event_name == 'pull_request' }}
uses: pulumi/actions@v3
with:
command: preview
stack-name: ${{ env.PULUMI_STACK_NAME }}
work-dir: ${{ env.PULUMI_WORKING_DIRECTORY }}
- name: Apply infrastructure update
if: ${{ github.event_name == 'push' }}
uses: pulumi/actions@v3
with:
command: up
stack-name: ${{ env.PULUMI_STACK_NAME }}
work-dir: ${{ env.PULUMI_WORKING_DIRECTORY }}