Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshTrivedi committed Nov 27, 2024
1 parent 9ec606e commit 43d71e3
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/new-entry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,25 +359,25 @@ jobs:



- name: Extract arguments from comment
id: extract_args
run: |
echo "Extracting arguments..."
comment="${{ github.event.comment.body }}"
python_version=$(echo "$comment" | grep -oP '(?<=--python )\S+')
appworld_version=$(echo "$comment" | grep -oP '(?<=--appworld )\S+')
experiment_prefix=$(echo "$comment" | grep -oP '(?<=--experiment-prefix )\S+')
replace_last_flag=$(echo "$comment" | grep -q -- '--replace-last' && echo "--replace-last" || echo "")
echo "Python version: $python_version"
echo "Appworld version: $appworld_version"
echo "Experiment names: ${{ env.experiment_prefix }}_test_normal and ${{ env.experiment_prefix }}_test_challenge"
echo "Replace last flag: $replace_last_flag"
echo "python_version=$python_version" >> $GITHUB_ENV
echo "appworld_version=$appworld_version" >> $GITHUB_ENV
echo "experiment_prefix=$experiment_prefix" >> $GITHUB_ENV
echo "replace_last_flag=$replace_last_flag" >> $GITHUB_ENV
# - name: Extract arguments from comment
# id: extract_args
# run: |
# echo "Extracting arguments..."
# comment="${{ github.event.comment.body }}"
# python_version=$(echo "$comment" | grep -oP '(?<=--python )\S+')
# appworld_version=$(echo "$comment" | grep -oP '(?<=--appworld )\S+')
# experiment_prefix=$(echo "$comment" | grep -oP '(?<=--experiment-prefix )\S+')
# replace_last_flag=$(echo "$comment" | grep -q -- '--replace-last' && echo "--replace-last" || echo "")

# echo "Python version: $python_version"
# echo "Appworld version: $appworld_version"
# echo "Experiment names: ${{ env.experiment_prefix }}_test_normal and ${{ env.experiment_prefix }}_test_challenge"
# echo "Replace last flag: $replace_last_flag"

# echo "python_version=$python_version" >> $GITHUB_ENV
# echo "appworld_version=$appworld_version" >> $GITHUB_ENV
# echo "experiment_prefix=$experiment_prefix" >> $GITHUB_ENV
# echo "replace_last_flag=$replace_last_flag" >> $GITHUB_ENV


# # # - name: Checkout PR branch
Expand Down

0 comments on commit 43d71e3

Please sign in to comment.