Skip to content

Commit

Permalink
Add kirkstone branch in the github validation workflow (eclipse-kanto#55
Browse files Browse the repository at this point in the history
)

[eclipse-kanto#54] Add the kirkstone branch to the GitHub workflow

Signed-off-by: Kristiyan Gostev <kristiyan.gostev@bosch.com>
  • Loading branch information
k-gostev committed May 19, 2023
1 parent 3d181d0 commit 656d077
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
push:
branches:
- main
- kirkstone
paths-ignore:
- "**/*.md"

pull_request:
branches:
- main
- kirkstone
paths-ignore:
- "**/*.md"

Expand All @@ -30,16 +32,27 @@ jobs:
run: |
echo "Free space:"
df -h
- name: Get branch name (merge)
if: github.event_name != 'pull_request'
shell: bash
run: if [ ${GITHUB_REF#refs/heads/} == "main" ]; then echo "BRANCH_NAME=$(echo "mickledore")" >>$GITHUB_ENV; else echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_ENV; fi
id: get_branch
- name: Get branch name (pull request)
if: github.event_name == 'pull_request'
shell: bash
run: if [ ${{ github.event.pull_request.base.ref }} == "main" ]; then echo "BRANCH_NAME=$(echo "mickledore")" >>$GITHUB_ENV; else echo "BRANCH_NAME=$(echo ${{ github.event.pull_request.base.ref }})" >>$GITHUB_ENV; fi
id: get_branch_pr
- name: Checkout
uses: actions/checkout@v2
with:
path: meta-kanto
ref: ${{ github.ref }}
- name: Clone poky
run: git clone -b mickledore git://git.yoctoproject.org/poky
run: git clone -b ${{ env.BRANCH_NAME }} git://git.yoctoproject.org/poky
- name: Clone meta-openembedded
run: git clone -b mickledore https://github.com/openembedded/meta-openembedded.git
run: git clone -b ${{ env.BRANCH_NAME }} https://github.com/openembedded/meta-openembedded.git
- name: Clone meta-virtualization
run: git clone -b mickledore https://github.com/lgirdk/meta-virtualization.git
run: git clone -b ${{ env.BRANCH_NAME }} https://github.com/lgirdk/meta-virtualization.git
- name: Add dependencies
run: |
sudo apt-get update
Expand Down Expand Up @@ -88,4 +101,4 @@ jobs:
- name: Free space info
run: |
echo "Free space:"
df -h
df -h

0 comments on commit 656d077

Please sign in to comment.