Skip to content

Commit

Permalink
Write version and time in box.json on release
Browse files Browse the repository at this point in the history
  • Loading branch information
bennothommo committed Sep 4, 2020
1 parent b8686fc commit 4ce7429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer
- name: Install Composer dependencies
run: composer install --no-progress --no-suggest
- name: Update box.json
run: sed -i 's/##version##/${{ github.ref }}/g; s/##datetime##/${{ steps.current-time.outputs.time }}/g' box.json
- name: Build project
run: ./vendor/bin/box compile
- name: Create release
Expand Down

0 comments on commit 4ce7429

Please sign in to comment.