chore(release): 0.0.1 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge main into production on tag push | |
on: | |
push: | |
tags: | |
- 'v*.*.*' # Déclenche le workflow pour les tags correspondant au schéma v*.*.* | |
permissions: | |
contents: write | |
jobs: | |
merge-main-into-production: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Nécessaire pour récupérer tous les tags | |
- name: Set up Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "bnote-auto-merge" | |
- name: Merge main into production | |
run: | | |
git checkout production | |
git merge main --no-ff -m "Merge branch 'main' into 'production'" | |
- name: Push changes | |
run: | | |
git push origin production | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |