Skip to content

Commit b4c8533

Browse files
committed
Update beta-bot.yml
1 parent 8aa83c0 commit b4c8533

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/beta-bot.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Beta Bot - Update Beta Dependencies
1+
name: Beta Bot
22

33
on:
44
schedule:
@@ -8,8 +8,6 @@ on:
88
jobs:
99
update:
1010
runs-on: ubuntu-latest
11-
env:
12-
CONFIG_FILE: "/.github/beta-bot.json"
1311
outputs:
1412
changes_detected: ${{ steps.check-changes.outputs.changes_detected }}
1513
changed_dir: ${{ steps.check-changes.outputs.changed_dir }}
@@ -32,17 +30,19 @@ jobs:
3230
- name: Load config file
3331
id: load-config
3432
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
3938
fi
40-
echo "Config file loaded: $config"
39+
echo "Config file loaded: $config_abs"
40+
echo "config_abs=$config_abs" >> $GITHUB_OUTPUT
4141
4242
- name: Process directories and packages
4343
id: process-dirs
4444
run: |
45-
config="${{ env.CONFIG_FILE }}"
45+
config="${{ steps.load-config.outputs.config_abs }}"
4646
dirs_length=$(jq '.directories | length' "$config")
4747
echo "Found $dirs_length directories in config"
4848
for i in $(seq 0 $(($dirs_length - 1))); do
@@ -51,7 +51,7 @@ jobs:
5151
echo "Directory not found: $dir"
5252
continue
5353
fi
54-
echo "Processing directory: $dir"
54+
echo " rewards Processing directory: $dir"
5555
cd "$dir"
5656
pkgs_length=$(jq ".directories[$i].packages | length" "$config")
5757
echo "Found $pkgs_length packages in $dir"
@@ -68,7 +68,7 @@ jobs:
6868
- name: Check for changes
6969
id: check-changes
7070
run: |
71-
config="${{ env.CONFIG_FILE }}"
71+
config="${{ steps.load-config.outputs.config_abs }}"
7272
auto_merge=$(jq -r ".auto_merge // false" "$config")
7373
dirs_length=$(jq '.directories | length' "$config")
7474
changes_detected=false

0 commit comments

Comments
 (0)