Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create action #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: [ action_test2 ] # TODO: switch to master

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Configure git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"

- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.6.0/bazelisk-linux-amd64"
mkdir -p "${HOME}/bin"
mv bazelisk-linux-amd64 "${HOME}/bin/bazel"
chmod +x "${HOME}/bin/bazel"

- name: Run hooks
run: |
env
PATH=${HOME}/bin:$PATH ./hooks/pre-commit

- name: Check for changes
run: |
if ! git commit -m "regenerate pb.go files"
then
exit
fi
git push origin action_test2 # TODO: switch to master