1
- name : Beta Bot - Update Beta Dependencies
1
+ name : Beta Bot
2
2
3
3
on :
4
4
schedule :
8
8
jobs :
9
9
update :
10
10
runs-on : ubuntu-latest
11
- env :
12
- CONFIG_FILE : " /.github/beta-bot.json"
13
11
outputs :
14
12
changes_detected : ${{ steps.check-changes.outputs.changes_detected }}
15
13
changed_dir : ${{ steps.check-changes.outputs.changed_dir }}
@@ -32,17 +30,19 @@ jobs:
32
30
- name : Load config file
33
31
id : load-config
34
32
run : |
35
- config="${{ env.CONFIG_FILE }}"
36
- if [ ! -f "$config" ]; then
37
- echo "Config file not found: $config"
38
- exit 0
33
+ config=".github/beta-bot.json"
34
+ config_abs="$(pwd)/$config"
35
+ if [ ! -f "$config_abs" ]; then
36
+ echo "::error::Config file not found: $config_abs. Please ensure .github/beta-bot.json exists in the repository."
37
+ exit 1
39
38
fi
40
- echo "Config file loaded: $config"
39
+ echo "Config file loaded: $config_abs"
40
+ echo "config_abs=$config_abs" >> $GITHUB_OUTPUT
41
41
42
42
- name : Process directories and packages
43
43
id : process-dirs
44
44
run : |
45
- config="${{ env.CONFIG_FILE }}"
45
+ config="${{ steps.load-config.outputs.config_abs }}"
46
46
dirs_length=$(jq '.directories | length' "$config")
47
47
echo "Found $dirs_length directories in config"
48
48
for i in $(seq 0 $(($dirs_length - 1))); do
51
51
echo "Directory not found: $dir"
52
52
continue
53
53
fi
54
- echo "Processing directory: $dir"
54
+ echo " rewards Processing directory: $dir"
55
55
cd "$dir"
56
56
pkgs_length=$(jq ".directories[$i].packages | length" "$config")
57
57
echo "Found $pkgs_length packages in $dir"
68
68
- name : Check for changes
69
69
id : check-changes
70
70
run : |
71
- config="${{ env.CONFIG_FILE }}"
71
+ config="${{ steps.load-config.outputs.config_abs }}"
72
72
auto_merge=$(jq -r ".auto_merge // false" "$config")
73
73
dirs_length=$(jq '.directories | length' "$config")
74
74
changes_detected=false
0 commit comments