mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
e615a2cd09
* [DEVOPS-1421] Fix syntax error * add a fetch-depth to fetch the branches * Add the relative repo name to the branch being merged * remove testing branch
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
---
|
|
name: Auto Update Branch
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- '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
|
|
steps:
|
|
- name: Setup
|
|
id: setup
|
|
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
with:
|
|
ref: 'eu-web-${{ steps.setup.outputs.branch }}'
|
|
fetch-depth: 0
|
|
|
|
- name: Merge ${{ steps.setup.outputs.branch }}
|
|
run: |
|
|
git config --local user.email "${{ env._BOT_EMAIL }}"
|
|
git config --local user.name "${{ env._BOT_NAME }}"
|
|
git merge origin/${{ steps.setup.outputs.branch }}
|
|
git push
|