Skip to content

Instantly share code, notes, and snippets.

@yasinkacmaz
Last active April 10, 2021 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasinkacmaz/91ccfbb1bcb855733f0258a5156b04ac to your computer and use it in GitHub Desktop.
Save yasinkacmaz/91ccfbb1bcb855733f0258a5156b04ac to your computer and use it in GitHub Desktop.
name: Check Dependency Updates
on:
schedule:
- cron: "37 13 * * SAT"
workflow_dispatch:
jobs:
dependency-updates:
runs-on: ubuntu-latest
steps:
# Removed some steps for brevity
- name: Checkout code
uses: actions/checkout@v2
- name: Check Dependency Updates
run: ./gradlew dependencyUpdates
- name: Log dependency update report
run: cat build/dependencyUpdates/dependency_update_report.txt
- name: 💌 Send email report
if: ${{ github.event_name == 'schedule' }}
uses: actions/github-script@v3
env:
MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }}
MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }}
with:
script: |
const scriptPath = '/./.github/scripts/dependency-update-report-mail-sender.js'
const script = require(`${process.env.GITHUB_WORKSPACE}${scriptPath}`)
script({ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment