Skip to content

Commit

Permalink
ci: add build version to zip file name when moving to build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mindctrl committed Feb 1, 2024
1 parent 441967f commit e212324
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ jobs:
ls -laR
curl -sL https://github.com/wpengine/wp-graphql-content-blocks/releases/latest/download/wp-graphql-content-blocks.zip > <<parameters.slug>>.zip
unzip -o -d <<parameters.slug>> <<parameters.slug>>.zip
mv <<parameters.slug>>.zip build/
ls -laR
- wp-product-orb/get_version_from_php:
filename: <<parameters.slug>>/<<parameters.filename>>
return_var: BUILD_VERSION
- wp-product-orb/variable:
var: BUILD_VERSION
value: $BUILD_VERSION
- run:
name: "Move zip file to build directory"
command: |
mv <<parameters.slug>>.zip build/<<parameters.slug>>.$BUILD_VERSION.zip
- run:
name: "DEBUG"
command: |
Expand Down

0 comments on commit e212324

Please sign in to comment.