mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 09:10:34 +00:00
Don't run jobs that aren't triggered on pull request on forks. Forks aren't likely to need these jobs, and theyre more likely to fail there. Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
34 lines
653 B
YAML
34 lines
653 B
YAML
---
|
|
name: Release Charts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- devel
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
if: github.repository_owner == 'submariner-io'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
|
|
- name: Update the charts
|
|
run: |
|
|
make release
|
|
|
|
- name: Push the charts
|
|
run: |
|
|
git add charts/*
|
|
git commit -m "Chart update"
|
|
git push
|