actions-playground/.github/workflows/test.yml
2022-08-12 14:56:03 +02:00

38 lines
950 B
YAML

# This is a basic workflow to help you get started with Actions
name: testing out
on:
push:
branches: [main]
jobs:
install-build:
outputs:
foo-service: ${{ steps.install.outputs.foo-service }}
bar-service: ${{ steps.install.outputs.bar-service }}
runs-on: ubuntu-latest
steps:
- name: install
id: install
run: |
echo pnpm install
node ./gen-service-version.js
foo-service:
needs: [install-build]
runs-on: ubuntu-latest
if: ${{ needs.install-build.outputs.foo-service == 'run' }}
steps:
- name: Build
run: |
echo "building..." ${{ needs.install-build.outputs.foo-service }}
bar-service:
needs: [install-build]
runs-on: ubuntu-latest
if: ${{ needs.install-build.outputs.bar-service == 'run' }}
steps:
- name: Build
run: |
echo "building ..." ${{ needs.install-build.outputs.bar-service }}