generated from seqan/app-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
77ffeff
There was a problem hiding this comment.
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