Skip to content

Commit

Permalink
ci(integration): add a script to zip up core proposals and remove colon
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqiPan committed Aug 20, 2024
1 parent e902bd2 commit 2c23078
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,24 @@ jobs:
- name: build proposals tests
run: yarn build
working-directory: a3p-integration
- name: Archive core proposals
- name: zip up all core proposals
run: |
find . -type d -path "./a3p-integration/proposals/*/submission" | while read -r dir; do
parent_dir=$(basename "$(dirname "$dir")")
sanitized_parent_dir=${parent_dir//:/-}
zip_file="${sanitized_parent_dir}.zip"
zip -r "$zip_file" "$dir"
echo "Zipped $dir into $zip_file"
done
- name: archive core proposals
uses: actions/upload-artifact@v4
with:
name: core-proposals
path: a3p-integration/**/submission
path: ./*.zip
- name: run proposals tests
run: yarn test
working-directory: a3p-integration
Expand Down

0 comments on commit 2c23078

Please sign in to comment.