Skip to content

Filter out any window messages that aren't from buildbuddy (#4989) #4766

Filter out any window messages that aren't from buildbuddy (#4989)

Filter out any window messages that aren't from buildbuddy (#4989) #4766

Workflow file for this run

name: Update Deps
on:
push:
branches:
- master
paths-ignore:
- "docs/**"
- "website/**"
jobs:
update:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'deps skip')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: buildbuddy
- name: Checkout internal
uses: actions/checkout@v3
with:
repository: "buildbuddy-io/buildbuddy-internal"
ref: "master"
token: ${{ secrets.BUILDBUDDY_APP_TOKEN }}
path: buildbuddy-internal
- name: Copy files from OSS to internal
run: |
cp buildbuddy/deps.bzl buildbuddy-internal/deps.bzl
cp buildbuddy/.bazelversion buildbuddy-internal/.bazelversion
- name: Update SHA
run: |
cd "$GITHUB_WORKSPACE"/buildbuddy-internal
sed -i "s/commit = \"[a-z0-9]*\", # autoupdate buildbuddy-io\/buildbuddy/commit = \"$GITHUB_SHA\", # autoupdate buildbuddy-io\/buildbuddy/g" WORKSPACE
- name: Commit
run: |
cd "$GITHUB_WORKSPACE"/buildbuddy-internal
git config --local user.email '${{ github.event.head_commit.author.email }}'
git config --local user.name '${{ github.event.head_commit.author.name }}'
git add WORKSPACE
git add deps.bzl
git add .bazelversion
cat <<EOF > message.txt
🔄 ${{ github.event.head_commit.message }}
Update buildbuddy-io/buildbuddy commit SHA
🔗 ${{ github.event.head_commit.url }}
EOF
git commit -F message.txt -a
- name: Push changes
uses: ad-m/[email protected]
with:
directory: buildbuddy-internal
repository: buildbuddy-io/buildbuddy-internal
github_token: ${{ secrets.BUILDBUDDY_GITHUB_USER_TOKEN }}
branch: master