mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
795 B
35 lines
795 B
5 months ago
|
name: EXPERIMENTAL -- Update artifacts branch
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
permissions:
|
||
|
contents: write
|
||
|
|
||
|
jobs:
|
||
|
sync:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v4
|
||
|
with:
|
||
|
ref: master
|
||
|
fetch-depth: 0
|
||
|
- name: Setup git user
|
||
|
run: |
|
||
|
git config --global user.name "GitHub Actions"
|
||
|
git config --global user.email "<EMAIL>"
|
||
|
- name: Update artifacts branch
|
||
|
run: |
|
||
|
git checkout master
|
||
|
git fetch origin
|
||
|
git checkout artifacts
|
||
|
git reset master .
|
||
|
git clean -fd
|
||
|
git rev-parse master > .source-revision
|
||
|
git add .
|
||
|
git commit -m "Update artifacts branch"
|
||
|
git push origin artifacts
|