Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not fail commits on workflow checks #507

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/cla-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check if CLA signed
id: check-cla
uses: canonical/has-signed-canonical-cla@v1
with:
accept-existing-contributors: true
- name: Annotate exit status
run: |
set -eu
if [ ${{ steps.check-cla.outcome }} == "failure" ]; then
exit 78 # Neutral status
fi
20 changes: 20 additions & 0 deletions .github/workflows/git-fixup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Git Checks

on: [pull_request]

jobs:
block-fixup:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.0.0
- name: Check fixup commits
id: check-fixup
uses: 13rac1/block-fixup-merge-action@v2.0.0
continue-on-error: true
- name: Annotate exit status
run: |
set -eu
if [ ${{ steps.check-fixup.outcome }} == "failure" ]; then
exit 78 # Neutral status
fi
12 changes: 0 additions & 12 deletions .github/workflows/git.yml

This file was deleted.

Loading