Skip to content

Merge pull request #26 from bromanla/master #238

Merge pull request #26 from bromanla/master

Merge pull request #26 from bromanla/master #238

Workflow file for this run

name: Compile proto
on:
push:
branches:
- master
paths-ignore:
- .github/workflows/build_compiler.yaml
- go/**
- dts/**
- cpp/**
- .clang-format
- .gitignore
- Dockerfile
- package.json
- package-lock.json
- README.md
repository_dispatch:
types: ["After image update"]
jobs:
compile:
name: Compile
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: login to registry
run: |
echo ${{ secrets.GITHUB_TOKEN }} | \
docker login docker.pkg.github.com -u ${{ github.actor }} \
--password-stdin
- name: pull compiler image
run: docker pull docker.pkg.github.com/rightech/ric-proto/compiler:latest
- name: compile
run: |
docker run --rm -v $(pwd):/ric-proto \
--env USER_ID=$(id -u) \
--env USER_GROUP=$(id -g) \
docker.pkg.github.com/rightech/ric-proto/compiler:latest
- name: set credentials
run: |
echo "AUTHOR_NAME="$(jq '. |
if (.head_commit == null) then
.client_payload.author_name
else
.head_commit.author.name end' \
$GITHUB_EVENT_PATH | xargs) >> $GITHUB_ENV
echo "AUTHOR_EMAIL="$(jq '. |
if (.head_commit == null) then
.client_payload.author_email
else
.head_commit.author.email end' \
$GITHUB_EVENT_PATH | xargs) >> $GITHUB_ENV
- name: commit changes
uses: EndBug/add-and-commit@v4
with:
author_name: ${{ env.AUTHOR_NAME }}
author_email: ${{ env.AUTHOR_EMAIL }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}