forked from NeuroTechX/moabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: try to fix TRCA * fix: remove n_fbands as not used in filterbanks * fix: adapt filter * fix: correct ssvep example * enh: add whats new * enh: adding a check for update of whats new file * fix: correct filepath --------- Co-authored-by: Sylvain Chevallier <sylain.chevallier@universite-paris-saclay.fr>
- Loading branch information
Showing
5 changed files
with
54 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Check What's new update | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
branches: [develop] | ||
|
||
jobs: | ||
check-whats-news: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check for file changes in PR | ||
run: | | ||
pr_number=${{ github.event.pull_request.number }} | ||
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
"https://api.github.com/repos/${{ github.repository }}/pulls/${pr_number}/files") | ||
file_changed=false | ||
file_to_check="docs/source/whats_new.rst" # Specify the path to your file | ||
for file in $(echo "${response}" | jq -r '.[] | .filename'); do | ||
if [ "$file" == "$file_to_check" ]; then | ||
file_changed=true | ||
break | ||
fi | ||
done | ||
if $file_changed; then | ||
echo "File ${file_to_check} has been changed in the PR." | ||
else | ||
echo "File ${file_to_check} has not been changed in the PR." | ||
echo "::error::File ${file_to_check} has not been changed in the PR." | ||
exit 1 | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |
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
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
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
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