Skip to content

Commit

Permalink
[INFRA] Update lint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Apr 5, 2023
1 parent 0bd876a commit 77ffeff
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,17 @@ jobs:
with:
args: --config-files .cmake-format.yaml --in-place

- name: Check git status
id: git_status
run: |
if [[ -z $(git status -uno --porcelain) ]]; then
echo "commit_required=" >> $GITHUB_OUTPUT
else
echo "commit_required=true" >> $GITHUB_OUTPUT
fi
- name: Import GPG key
if: ${{ steps.changed_files.outputs.cpp_list }} || ${{ steps.changed_files.outputs.cmake_list }}
if: ${{ steps.git_status.outputs.commit_required }}
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.SEQAN_ACTIONS_GPG_KEY }}
Expand All @@ -132,20 +141,16 @@ jobs:
git_commit_gpgsign: true

- name: Commit changes
if: ${{ steps.changed_files.outputs.cpp_list }} || ${{ steps.changed_files.outputs.cmake_list }}
if: ${{ steps.git_status.outputs.commit_required }}
run: |
git config user.name "seqan-actions[bot]"
git config user.email "[email protected]"
git add .
git commit -m '[MISC] automatic linting' || true
git commit -m '[MISC] automatic linting'
git push fork ${{ github.event.pull_request.head.ref }}
# Wait for 5 seconds such that workflows triggered by adding the label run on the newest commit.
- name: Defer workflow
if: ${{ steps.changed_files.outputs.cpp_list }} || ${{ steps.changed_files.outputs.cmake_list }}
run: sleep 5

- name: Remove label
if: ${{ !steps.git_status.outputs.commit_required }}
env:
GITHUB_TOKEN: ${{ secrets.SEQAN_ACTIONS_PAT }}
PR_URL: ${{ github.event.pull_request.html_url }}
Expand Down

1 comment on commit 77ffeff

@vercel
Copy link

@vercel vercel bot commented on 77ffeff Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

raptor – ./

seqan-raptor.vercel.app
raptor-seqan.vercel.app
raptor-git-main-seqan.vercel.app

Please sign in to comment.