mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Auto Update Branch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'rc'
|
|
paths:
|
|
- 'apps/web/**'
|
|
- 'libs/**'
|
|
- '*'
|
|
- '!*.md'
|
|
- '!*.txt'
|
|
- '.github/workflows/build-web.yml'
|
|
workflow_dispatch:
|
|
inputs: {}
|
|
|
|
jobs:
|
|
update:
|
|
name: Update Branch
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
_BOT_EMAIL: 106330231+bitwarden-devops-bot@users.noreply.github.com
|
|
_BOT_NAME: bitwarden-devops-bot
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Setup
|
|
id: setup
|
|
run: echo "branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
with:
|
|
ref: 'eu-web-${{ steps.setup.outputs.branch }}'
|
|
fetch-depth: 0
|
|
persist-credentials: true
|
|
|
|
- name: Merge ${{ steps.setup.outputs.branch }}
|
|
env:
|
|
_BRANCH: ${{ steps.setup.outputs.branch }}
|
|
run: |
|
|
git config --local user.email "$_BOT_EMAIL"
|
|
git config --local user.name "$_BOT_NAME"
|
|
git merge "origin/$_BRANCH"
|
|
git push
|