Skip to content

Commit

Permalink
Syntax changes for github default env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
aditnath committed Apr 4, 2023
1 parent 887679f commit 4257f8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pack -r cellpack/tests/recipes/v2/test_spheres.json -c cellpack/tests/packing-configs/test_config.json
- name: Modify JSON with PR sub_directory path
run: |
jq --arg branch_name "$GITHUB_REF_NAME" '.create_report.results_output_path |= "https://cellpack-results.s3.us-west-2.amazonaws.com/\($branch_name)/spheresSST"' cellpack/tests/analysis-configs/PR_analysis_config.json > cellpack/tests/analysis-configs/PR_analysis_config_temp.json
jq --arg branch_name "${{ github.ref.name }}" '.create_report.results_output_path |= "https://cellpack-results.s3.us-west-2.amazonaws.com/\($branch_name)/spheresSST"' cellpack/tests/analysis-configs/PR_analysis_config.json > cellpack/tests/analysis-configs/PR_analysis_config_temp.json
mv cellpack/tests/analysis-configs/PR_analysis_config_temp.json cellpack/tests/analysis-configs/PR_analysis_config.json
- name: Run analysis code
run: analyze -a cellpack/tests/analysis-configs/PR_analysis_config.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
user: meganrm
password: ${{ secrets.PYPI_TOKEN }}
password: ${{ secrets.PYPI_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
sudo apt-get install -y awscli
- name: Remove files in results sub_dir
run: |
if aws s3 ls s3://cellpack-results/$GITHUB_REF/ ; then
aws s3 rm s3://cellpack-results/$GITHUB_REF --recursive
if aws s3 ls s3://cellpack-results/${{ github.ref }}/ ; then
aws s3 rm s3://cellpack-results/${{ github.ref }} --recursive
else:
echo "The specified path does not exist"
fi

0 comments on commit 4257f8a

Please sign in to comment.