Skip to content

Pre-release

Pre-release #277

Workflow file for this run

name: Pre-release
on: workflow_dispatch
concurrency:
cancel-in-progress: true
group: pre-release-${{ github.ref }}
permissions:
id-token: write # Required for OIDC token generation
jobs:
release:
name: Pre-release
runs-on: ubuntu-latest
steps:
- name: Get GitHub App Token
id: token
uses: SocialGouv/token-bureau@main
with:
token-bureau-url: https://token-bureau.fabrique.social.gouv.fr
audience: socialgouv
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Rebase dev to master
run: |
git config --global user.name "${NAME}"
git config --global user.email "${EMAIL}"
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git switch master
git pull
git rebase dev
git push
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}
EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}