mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 07:59:02 +00:00
add separate pre-release job with turnstyle (#254)
This commit is contained in:
parent
45b6282a15
commit
a077a803d4
22
.github/workflows/release.yaml
vendored
22
.github/workflows/release.yaml
vendored
@ -8,8 +8,19 @@ on:
|
|||||||
- "charts/**"
|
- "charts/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
pre-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
steps:
|
||||||
|
- name: Block concurrent releases
|
||||||
|
uses: softprops/turnstyle@v1
|
||||||
|
with:
|
||||||
|
continue-after-seconds: 180
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: pre-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -17,13 +28,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Turnstyle
|
|
||||||
uses: softprops/turnstyle@v1
|
|
||||||
with:
|
|
||||||
continue-after-seconds: 180
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "$GITHUB_ACTOR"
|
||||||
@ -45,8 +49,8 @@ jobs:
|
|||||||
# needed until https://github.com/helm/chart-releaser/issues/90
|
# needed until https://github.com/helm/chart-releaser/issues/90
|
||||||
# or helm/chart-releaser-action supports this
|
# or helm/chart-releaser-action supports this
|
||||||
post-release:
|
post-release:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: release
|
needs: release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user