Skip to content

Update release-submission.yml #230

Update release-submission.yml

Update release-submission.yml #230

Workflow file for this run

name: Check meta-mistysom Submodule

Check failure on line 1 in .github/workflows/check-submodule.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check-submodule.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
branches: [ "master", "develop", "Projects/**" ]
paths-ignore: [ '**.md', '**.pdf', '**.yml' ]
paths: [ "build/**" ]
pull_request:
branches: [ "master", "develop", "Projects/**" ]
paths-ignore: [ '**.md', '**.pdf', '**.yml' ]
paths: [ "build/**" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
check-submodule:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Assign variable based on branch name
run: |
target_branch=${{ github.base_ref }}
# Set another value if the variable is empty
target_branch="${target_branch:-${{ github.ref_name }}}"
echo "The target branch is: $target_branch"
# Set the value of the environment variable with the same name as the variable
echo "target_branch=$target_branch" >> $GITHUB_ENV
- name: 'Check meta-mistysom Submodule Branch'
uses: jtmullen/[email protected]
with:
path: Build/meta-mistysom
branch: ${{ env.target_branch }}
require_head: true
- name: 'Check meta-econsys Submodule Branch'
uses: jtmullen/[email protected]
with:
path: Build/meta-econsys
branch: ${{ env.target_branch }}
require_head: true