Skip to content

Try without the nested conditions #335

Try without the nested conditions

Try without the nested conditions #335

name: Build ThunderInterfaces on Linux
on:
workflow_dispatch:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
GetFlags:
runs-on: ubuntu-latest
outputs:
template: ${{ steps.ThunderInterfacesLinux.outputs.template }}
name: Get Actions related flags from the PR
steps:
- name: Regex ThunderInterfaces
if: contains(github.event.pull_request.body, '[ThunderInterfaces-Linux-template:')
id: ThunderInterfacesLinuxRegex
uses: AsasInnab/regex-action@v1
with:
regex_pattern: '(?<=\[ThunderInterfaces-Linux-template:).*(?=\])'
regex_flags: 'gim'
search_string: ${{github.event.pull_request.body}}
- name: Save the output
if: contains(github.event.pull_request.body, '[ThunderInterfaces-Linux-template:')
run: echo "template=${{steps.ThunderInterfacesLinuxRegex.outputs.first_match}}" >> "$GITHUB_OUTPUT"
Thunder:
uses: rdkcentral/Thunder/.github/workflows/Linux build template.yml@development/actions-pep668-error # change back to master
ThunderInterfaces:
needs: [Thunder, GetFlags]
uses: rdkcentral/ThunderInterfaces/.github/workflows/Linux build template.yml@${{ needs.GetFlags.outputs.template != '' && needs.GetFlags.outputs.template || 'master' }} # change back to master

Check failure on line 37 in .github/workflows/Build ThunderInterfaces on Linux.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Build ThunderInterfaces on Linux.yml

Invalid workflow file

invalid value workflow reference: version cannot have whitespace: ${{ needs.GetFlags.outputs.template != '' && needs.GetFlags.outputs.template || 'master' }}
ThunderClientLibraries:
needs: ThunderInterfaces
uses: rdkcentral/ThunderClientLibraries/.github/workflows/Linux build template.yml@master
ThunderNanoServices:
needs: ThunderInterfaces
uses: rdkcentral/ThunderNanoServices/.github/workflows/Linux build template.yml@master
ThunderNanoServicesRDK:
needs: ThunderInterfaces
uses: WebPlatformForEmbedded/ThunderNanoServicesRDK/.github/workflows/Linux build template.yml@master