summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLuca BRUNO <luca.bruno@coreos.com>2020-11-16 11:05:52 +0000
committerLuca BRUNO <luca.bruno@coreos.com>2020-11-16 11:14:40 +0000
commit0d0eb4715bf8e57ee60ee14f534bca11ffe6ca02 (patch)
tree4e30e7fdc0e4643b30f7c3865ffe777a168b2503 /.github/workflows
parentfdd3f7fcdffefca281349c5c0f9b75fbf9947c52 (diff)
downloadostree-0d0eb4715bf8e57ee60ee14f534bca11ffe6ca02.tar.gz
ci: run ci-release-build.sh on GitHub
This adds a GitHub action in order to run ci-release-build.sh on release PRs (detected via the `kind/release` label).
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..7189a976
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,27 @@
+---
+name: Release sanity
+
+on:
+ pull_request:
+ branches: [master]
+ types: [labeled]
+
+jobs:
+ ci-release-build:
+ name: "Sanity check release commits"
+ if: ${{ github.event.label.name == 'kind/release' }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Clone repository
+ uses: actions/checkout@v2
+ with:
+ submodules: 'recursive'
+ fetch-depth: '0'
+ - name: Checkout (HEAD)
+ run: git checkout HEAD
+ - name: Check release sanity (HEAD)
+ run: ci/ci-release-build.sh
+ - name: Checkout (HEAD^)
+ run: git checkout HEAD^
+ - name: Check release sanity (HEAD^)
+ run: ci/ci-release-build.sh