Skip to content

Commit

Permalink
minor: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Boutzi committed Oct 10, 2024
1 parent dfe727f commit e8ee555
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ concurrency:
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

# Incrementer la version
# Incrémenter la version
- name: Increment version
id: increment_version
run: |
CURRENT_VERSION=$(jq -r '.version' version.json)
IFS='.' read -r major minor patch <<< "$CURRENT_VERSION"
# Récupérer le type d'incrémentation depuis le message de commit
echo "Commit message: ${{ github.event.head_commit.message }}"
if [[ "${{ github.event.head_commit.message }}" == *"[major]"* ]]; then
major=$((major + 1))
Expand All @@ -53,13 +55,10 @@ jobs:
git config --local user.name "boutzi"
git config --local user.email "[email protected]"
# Stasher les changements
- name: Stash changes
run: git stash

# Tirer les dernières modifications
# Pull pour s'assurer d'avoir la dernière version
- name: Pull latest changes
run: git pull --rebase origin main
run: |
git pull --rebase origin main
# Commit version change
- name: Commit version change
Expand Down Expand Up @@ -121,6 +120,7 @@ jobs:
with:
path: ./out

# Deployment job
deploy:
environment:
name: github-pages
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "1.3.30"}
{ "version": "1.3.29" }

0 comments on commit e8ee555

Please sign in to comment.