File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : micro-ROS fork Update Checker
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ name :
6+ description : " Manual trigger"
7+ schedule :
8+ - cron : ' 0 4 * * *'
9+
10+ jobs :
11+ micro_ros_fork_update_check :
12+ runs-on : ubuntu-latest
13+ container : ubuntu:20.04
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ branches : [foxy, galactic, humble, master]
18+ steps :
19+ - name : Check
20+ id : check
21+ shell : bash
22+ run : |
23+ apt update; apt install -y git
24+ REPO=$(echo ${{ github.repository }} | awk '{split($0,a,"/"); print a[2]}')
25+ git clone -b ${{ matrix.branches }} https://github.com/micro-ros/$REPO
26+ cd $REPO
27+ git remote add ros2 https://github.com/ros2/$REPO
28+ git fetch ros2
29+ git fetch origin
30+ echo "::set-output name=merge_required::true"
31+ CMP=$(git rev-list --left-right --count ros2/${{ matrix.branches }}...origin/${{ matrix.branches }} | awk '{print $1}')
32+ if [ $CMP = "0" ]; then echo "::set-output name=merge_required::false"; fi
33+
34+ - name : Alert
35+ if : ${{ steps.check.outputs.merge_required == 'true' }}
36+ run : exit 1
You can’t perform that action at this time.
0 commit comments