rancher-partner-charts/.github/workflows/pull-request.yaml

36 lines
863 B
YAML
Raw Normal View History

2020-06-30 18:08:43 +00:00
name: CI-pullrequest
on:
pull_request:
branches:
- main-source
2020-06-30 18:08:43 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-11-09 13:38:11 +00:00
- uses: actions/checkout@v3
with:
fetch-depth: 0
2020-06-30 18:08:43 +00:00
2022-08-19 03:18:14 +00:00
- name: Fetch CI Tools
2024-11-05 00:29:36 +00:00
run: scripts/pull-scripts
2022-08-19 03:18:14 +00:00
- name: Checkout into branch
run: git checkout -b staging-pr-workflow
- name: Fetch main-source
run: git fetch origin main-source
- 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)"
- name: Rebase to main-source
run: git rebase origin/main-source
- name: Validate
2023-11-08 16:08:33 +00:00
if: "!contains(github.event.pull_request.title, '[modified charts]')"
2024-11-05 00:29:36 +00:00
run: bin/partner-charts-ci validate