Skip to content

Commit

Permalink
add: new version argument to update to specific version
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Feb 19, 2025
1 parent 988fd12 commit e9ccd4d
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 93 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/phar_build_and_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ jobs:
run: composer install --prefer-dist --no-progress --no-suggest

- name: Create phar
run: bash ./build.sh
run: bash ./build.sh && php ./n98-magerun2.phar --version && mv ./n98-magerun2.phar ./n98-magerun2.phar.original

- name: Test self-update command
run: php ./n98-magerun2.phar self-update --unstable
run: cp ./n98-magerun2.original ./n98-magerun2.phar && php ./n98-magerun2.phar self-update --unstable && ./n98-magerun2.phar --version

- name: Rollback phar to a specific version
run: cp ./n98-magerun2.phar.original ./n98-magerun2.phar && ./n98-magerun2.phar self-update 7.5.0 && ./n98-magerun2.phar --version
Loading

0 comments on commit e9ccd4d

Please sign in to comment.