summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-06-23 21:23:46 +0800
committerLASER-Yi <[email protected]>2021-06-23 21:23:46 +0800
commit058ae489f0273464c493ba6780d7396671d09931 (patch)
tree3722cbce4b91745a4aabd31f07544b0db31c3503 /.github
parent5a7981e5574c655204d488c4c52be40e287ec084 (diff)
downloadbazarr-058ae489f0273464c493ba6780d7396671d09931.tar.gz
bazarr-058ae489f0273464c493ba6780d7396671d09931.zip
no log: Use LASER-Yi/workflow-status to check CI status
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release_beta_to_dev.yaml18
1 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/release_beta_to_dev.yaml b/.github/workflows/release_beta_to_dev.yaml
index 185bf964c..c7fa57b22 100644
--- a/.github/workflows/release_beta_to_dev.yaml
+++ b/.github/workflows/release_beta_to_dev.yaml
@@ -17,14 +17,6 @@ jobs:
echo This action can only be run on development branch, not ${{ github.ref }}
exit 1
- # TODO: Replace me
- - name: Validate CI
- uses: xembly/validate-workflow-status@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- workflow: CI
- branch: development
-
- name: Checkout
uses: actions/checkout@v2
with:
@@ -59,7 +51,17 @@ jobs:
run: npm run build
working-directory: ${{ env.UI_DIRECTORY }}
+ - name: Validate CI
+ id: check-ci
+ uses: LASER-Yi/[email protected]
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ workflow: ci.yml
+ event: push
+ branch: development
+
- name: Create Release (Conditional)
+ if: ${{ steps.check-ci.outputs.conclusion == 'success' }}
run: |
revision_count=$(git rev-list --invert-grep --regexp-ignore-case --extended-regexp --grep="^(Release|no log:).*" $(git describe --tags --abbrev=0)..HEAD --count)
if [[ $revision_count != 0 ]]; then