sfops
sfpSlackGithub
  • Overview
  • Features
  • Environments
    • Creating an Environment
    • Authenticating to Environments
    • Review Environments
      • Configuring Review Sandboxes
      • Creation and Allocation of Review Sandboxes
  • Project Workflows
    • sfops - Execute Issue Ops
    • sfops - On Pull Request Comments
    • sfops - Close Issues
    • sfops - Execute Every 30 mins
    • sfops - Daily Job Executor
    • sfops - Review Sandbox - Creator
    • sfops - On Push to Branch
    • sfops - Execute Releases to any env
    • sfops - Execute Releases
  • IssueOps
    • Access
      • Request elevated previlege in production
    • Release
      • Release a Domain
      • Hotfix Workflow
  • Changelog
    • November24
    • January25
  • DevCentral
    • Customising Menu
    • Extending using Custom Forms and Issue Ops Actions
  • self managed instances
    • Setup for self managed instances
      • 1. Create repositories
      • 2. Create a GitHub App
      • 3. Setting up sfops repository
      • 4. Trigger the workflows
      • 5. Setting up project repository
      • 6. Fetching upstream changes
        • 6.1 Manual Process for Updating sfops from Upstream
    • Update Instructions
      • Updating to v29.0.0
      • Updating to v30.3.1 and above
    • Workflow details
      • Sync Upstream Repository and Create Pull Request
  • Legal
    • Terms of Service for sfops
Powered by GitBook
On this page
  • Trigger
  • Jobs
  1. Project Workflows

sfops - Daily Job Executor

This workflow is designed to execute various daily jobs related to Salesforce operations, environment management, and reporting.

name: sfops - Daily job executor
on:
  schedule:
    - cron: '0 12 * * *' # At 12 00 UTC every day
  workflow_dispatch:

run-name: 'sfops- Execute Daily Jobs'

jobs:
  exec-daily-reports:
      name: 'Execute Daily Reports'
      uses:   ${{ sfops.repo_owner }}/${{ sfops.action_repository }}/.github/workflows/exec-daily-jobs.yml@main
      with:
         sfopsbot-app-id: ${{ vars.SFOPSBOT_APP_ID }}
         metrics-provider: ${{ vars.SFOPS_METRICS_PROVIDER }}
         dashboard-repo: ${{ vars.SFOPS_DASBHOARD_REPO }}
      secrets:
        DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
        DATADOG_HOST: ${{ secrets.DATADOG_HOST }}
        SFOPSBOT_APP_PRIVATE_KEY: ${{ secrets.SFOPSBOT_APP_PRIVATE_KEY }}

Trigger

The workflow is triggered in two ways:

  1. Automatically at 12:00 UTC every day via a cron schedule

  2. Manually via workflow_dispatch

schedule:
  - cron: '0 12 * * *'

Jobs

The workflow, named "sfops - Daily job executer", calls a reusable workflow exec-daily-jobs.yml. and has the following jobs

1. cleanup-runs

This job cleans up workflow runs that are skipped or cancelled

2. report-gh-metrics

This job reports GitHub metrics. It only runs on scheduled events (once a day).

3. report-package-evolution

This job reports on package evolution. to devcentral

Previoussfops - Execute Every 30 minsNextsfops - Review Sandbox - Creator

Last updated 10 months ago