Skip to content

Commit

Permalink
reorganized weeklies into dedicated workflow like dailies (#1088)
Browse files Browse the repository at this point in the history
Co-authored-by: Heberto Mayorquin <h.mayorquin@gmail.com>
  • Loading branch information
pauladkisson and h-mayorquin authored Sep 19, 2024
1 parent 4c3edc9 commit 60cc8c7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Build and Upload Docker Image of Rclone With Config to GHCR

on:
schedule:
- cron: "0 16 * * 1" # Weekly at noon EST on Monday
workflow_dispatch:
workflow_call:
secrets:
DOCKER_UPLOADER_USERNAME:
required: true
DOCKER_UPLOADER_PASSWORD:
required: true

concurrency: # Cancel previous workflows on the same pull request
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/weeklies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Weekly workflows

on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 0" # Weekly at 6PM PST, 9PM EST, 3AM CET on Sunday to avoid working hours

jobs:
build-and-upload-docker-image-rclone-with-config:
uses: ./.github/workflows/build_and_upload_docker_image_rclone_with_config.yml
secrets:
DOCKER_UPLOADER_USERNAME: ${{ secrets.DOCKER_UPLOADER_USERNAME }}
DOCKER_UPLOADER_PASSWORD: ${{ secrets.DOCKER_UPLOADER_PASSWORD }}

notify-build-and-upload-docker-image-rclone-with-config:
runs-on: ubuntu-latest
needs: [build-and-upload-docker-image-rclone-with-config]
if: ${{ always() && needs.build-and-upload-docker-image-rclone-with-config.result == 'failure' }}
steps:
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: NeuroConv Weekly Docker Image Build and Upload Failure
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }}
from: NeuroConv
body: "The weekly build and upload of the Docker image failed, please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/weeklies.yml"
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

## Improvements
* Run only the most basic testing while a PR is on draft [PR #1082](https://github.com/catalystneuro/neuroconv/pull/1082)
* Consolidated weekly workflows into one workflow and added email notifications [PR #1088](https://github.com/catalystneuro/neuroconv/pull/1088)
* Avoid running link test when the PR is on draft [PR #1093](https://github.com/catalystneuro/neuroconv/pull/1093)


Expand Down

0 comments on commit 60cc8c7

Please sign in to comment.