2020-06-30 18:08:43 +00:00
|
|
|
name: CI-pullrequest
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2020-09-22 23:46:05 +00:00
|
|
|
branches:
|
2020-09-22 23:58:59 +00:00
|
|
|
- main-source
|
2020-06-30 18:08:43 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-02-18 21:38:09 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-06-30 18:08:43 +00:00
|
|
|
|
2021-06-11 17:00:45 +00:00
|
|
|
- name: Checkout into branch
|
|
|
|
run: git checkout -b staging-pr-workflow
|
2022-02-18 21:38:09 +00:00
|
|
|
|
|
|
|
- name: Fetch main-source
|
|
|
|
run: git fetch origin main-source
|
2022-02-18 23:43:26 +00:00
|
|
|
|
|
|
|
- name: Set git user for rebase
|
|
|
|
run: |
|
|
|
|
git config user.name "$(git log -n 1 --pretty=format:%an)"
|
|
|
|
git config user.email "$(git log -n 1 --pretty=format:%ae)"
|
2022-02-18 21:38:09 +00:00
|
|
|
|
|
|
|
- name: Rebase to main-source
|
|
|
|
run: git rebase origin/main-source
|
2021-06-11 17:00:45 +00:00
|
|
|
|
|
|
|
- name: Pull scripts
|
|
|
|
run: sudo make pull-scripts
|
|
|
|
|
|
|
|
- name: Validate
|
2022-02-18 21:38:09 +00:00
|
|
|
run: sudo make validate
|