Update release-submission.yml #230
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check meta-mistysom Submodule | ||
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 |