Skip to content

Commit

Permalink
build-test-recipe.yml: support building from other than master
Browse files Browse the repository at this point in the history
(cherry picked from commit d7b7fbf)
  • Loading branch information
thomas-roos authored and github-actions[bot] committed Dec 11, 2024
1 parent 01b4cc3 commit cbd5913
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-test-recipe.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: build-test-recipe
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
pull_request:
jobs:
changed:
Expand Down Expand Up @@ -30,12 +28,16 @@ jobs:
fi
echo "$DIFF"
echo "diff=$( echo "$DIFF" | tr '\n' ' ' )" >> $GITHUB_OUTPUT
- name: get yocto release name
- name: Get Yocto release name
id: get-yocto-release-name
run: |
export RELEASE=$(echo ${{github.event.pull_request.base.ref}} | cut -d- -f1)
echo "$RELEASE"
echo "release=${RELEASE:-master}" >> $GITHUB_OUTPUT
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
RELEASE=$(echo "${{ github.event.pull_request.base.ref }}" | cut -d- -f1)
else
RELEASE=$(echo "${{ github.ref_name }}" | cut -d- -f1)
fi
echo "Determined release: $RELEASE"
echo "release=${RELEASE}" >> $GITHUB_OUTPUT
build-test:
name: Build, Test ${{ matrix.machine }} ${{ needs.changed.outputs.release }}
needs: changed
Expand Down

0 comments on commit cbd5913

Please sign in to comment.