Skip to content

Experiment with calling a sub workflow #3

Experiment with calling a sub workflow

Experiment with calling a sub workflow #3

Workflow file for this run

name: Test notification on sub workflow
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
branches:
- master
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: sleep 10
- uses: ./.github/workflows/notify-slack.yml
secrets: inherit

Check failure on line 22 in .github/workflows/test-notify.yaml

View workflow run for this annotation

GitHub Actions / Test notification on sub workflow

Invalid workflow file

The workflow is not valid. .github/workflows/test-notify.yaml (Line: 22, Col: 7): Unexpected value 'secrets' .github/workflows/test-notify.yaml (Line: 31, Col: 7): Unexpected value 'secrets'
with:
run_id: ${{ env.GITHUB_RUN_ID }}
test-integration:
runs-on: ubuntu-latest
steps:
- run: sleep 30
- uses: ./.github/workflows/notify-slack.yml
secrets: inherit
with:
run_id: ${{ env.GITHUB_RUN_ID }}
build-and-push:
runs-on: ubuntu-latest
steps:
- run: sleep 60
- uses: ./.github/workflows/notify-slack.yml
secrets: inherit
with:
run_id: ${{ env.GITHUB_RUN_ID }}