Skip to content

Commit

Permalink
Merge pull request #483 from jesusantguerrero/feat/migrate-laravel-11
Browse files Browse the repository at this point in the history
chore: update version
  • Loading branch information
jesusantguerrero authored Sep 15, 2024
2 parents 04eff13 + c292fc4 commit 494dcfc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 24 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Loger Demo Deployment

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]

jobs:
build:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,24 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2' # Use your PHP version
php-version: '8.1' # Use your PHP version

- name: Get latest release tag
run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

- name: Log current version
run: cat config/app.php | grep version

- name: Update version in config/app.php
run: |
sed -i "s/'version' => env('APP_VERSION', .*/'version' => env('APP_VERSION', '${RELEASE_VERSION}'),/" config/app.php
sed -i "s/'version' => env('APP_VERSION', '[^']*'/'version' => env('APP_VERSION', '${RELEASE_VERSION}'/" config/app.php
echo "Updated config/app.php with version: ${RELEASE_VERSION}"
cat config/app.php | grep version
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add config/app.php
git commit -m "Update app version to ${RELEASE_VERSION}"
git commit -m "Update app version to ${RELEASE_VERSION}" || echo "No changes to commit"
git push origin HEAD

0 comments on commit 494dcfc

Please sign in to comment.