Fix workflow

This commit is contained in:
Bryce Lampe
2024-03-07 16:18:20 -08:00
parent d8688f5e1a
commit 48790551fb

View File

@@ -4,12 +4,12 @@ on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- main - main
pull_request: pull_request:
branches: branches:
- main - main
schedule: schedule:
- cron: '0 0 * * *' - cron: "0 0 * * *"
jobs: jobs:
build: build:
@@ -22,41 +22,34 @@ jobs:
packages: read packages: read
actions: read actions: read
steps: steps:
- - name: Checkout repository
name: Checkout repository uses: actions/checkout@v4
uses: actions/checkout@v4 id: git
id: git with:
with: submodules: "recursive"
submodules: 'recursive' - name: Unshallow clone for tags
- id: tags
name: Unshallow clone for tags run: |
id: tags sudo chown -R $(whoami) /__w/pulumi-docker-native/pulumi-docker-native
run: | git config --global --add safe.directory /__w/pulumi-docker-native/pulumi-docker-native
sudo chown -R $(whoami) /__w/pulumi-provider-boilerplate/pulumi-provider-boilerplate git fetch --prune --unshallow --tags
git config --global --add safe.directory /__w/pulumi-provider-boilerplate/pulumi-provider-boilerplate - name: Build
git fetch --prune --unshallow --tags id: build
- run: |
name: Build make build
id: build - name: Install
run: | id: install
make build run: |
- set -ex
name: Install make install
id: install - name: PulumiUp
run: | id: up
set -ex run: make up
make install - name: PulumiDown
- id: down
name: PulumiUp run: make down
id: up - name: Generate multi-language examples from yaml IaC program
run: make up id: examples
- run: |
name: PulumiDown set -ex
id: down make gen_examples
run: make down
-
name: Generate multi-language examples from yaml IaC program
id: examples
run: |
set -ex
make gen_examples