Add sync browser-desktop workflow #3
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: "Synchronise browser-desktop" | |
on: | |
pull_request: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.base_ref }} | |
fetch-depth: 1000 | |
- name: Checkout desktop repo | |
uses: actions/checkout@v4 | |
with: | |
repository: dothq/browser-desktop | |
path: dot | |
- name: Initialise mach | |
working-directory: ./dot | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
./scripts/install_mach_commands.py | |
- name: Bump the revision file | |
working-directory: ./dot | |
run: | | |
echo "${{ github.server_url }}/${{ github.repository }}.git ${{ github.sha }} ${{ github.base_ref }}" > REVISION | |
- name: Synchronise repositories | |
working-directory: ./dot | |
run: | | |
./mach sync |