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

41 lines
1.1 KiB
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
2022-08-19 03:18:14 +00:00
env:
CI_TOOLS_URL: https://github.com/samuelattwood/partner-charts-ci/releases/latest/download/partner-charts-ci-linux-amd64
2020-06-30 18:08:43 +00:00
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
2020-06-30 18:08:43 +00:00
2022-08-19 03:18:14 +00:00
- name: Fetch CI Tools
run: |
curl -s -L -o /usr/local/bin/partner-charts-ci $CI_TOOLS_URL
chmod +x /usr/local/bin/partner-charts-ci
- 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
2022-08-19 03:18:14 +00:00
if: "!contains(github.event.pull_request.title, '[modified charts]')"
run: partner-charts-ci validate