-
Notifications
You must be signed in to change notification settings - Fork 83
45 lines (40 loc) · 1.84 KB
/
check_for_new_bricks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ** Check for new bricks **
#
# This check (only) compares the Catroweb brick support with all existing Catroid bricks.
# Bricks implemented by Catty are not checked, since the Android team usually is way faster than the iOS team.
#
# - Why do we need those bricks?
#
# We need the information about those bricks to present users valid code statisitics and code views.
# Automating the checks, provides Catroweb developers with immediate feedback about new bricks and how to
# integrate them into the project, even if the team overlapping communication is missing.
#
name: Check for new bricks
#
# This check is independent of a pull request, hence, it is executed once a day on a schedule.
# In case, an additional run is required, a manual dispatch trigger is also enabled.
#
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
#
# The `check-bricks` script is written in Php, hence, we have to ensure Php is installed.
# However, it would be possible to write the script in any language.
# Next it is essential to ensure that the script is executable.
# Finally, all that is left to do, is to run the script to compare the bricks.
# For more information about the brick comparison, check out the script.
#
check_for_new_catroid_bricks:
# Only should run on the main repo. There is no need to run the same check on multiple repositories.
if: github.repository == 'Catrobat/Catroweb'
name: Check for new Catroid Bricks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Permissions
run: sudo chmod 755 bin/checkCatroidRepositoryForNewBricks
- name: Check Catroid Repository for new bricks
run: bin/checkCatroidRepositoryForNewBricks