Skip to content

mofmof/check-for-deployment-omissions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

[Check for Deployment Omissions] Action!

Notify you when there is a difference between Deployment and the base branch.

Install

1. Create Slack App

  1. Go to https://api.slack.com/apps/
  2. Create New App with From an app manifest

manifest is

display_information:
  name: Check for Deployment Omissions
settings:
  org_deploy_enabled: false
  socket_mode_enabled: false
  is_hosted: false
  token_rotation_enabled: false
features:
  bot_user:
    display_name: Check for Deployment Omissions
oauth_config:
  scopes:
    bot:
      - chat:write
      - chat:write.public

Get Bot User OAuth Token in the OAuth & Permissions section

2. Create GitHub Actions workflow

.github/workflows/check-for-deployment-omissions.yml

name: 'check-for-deployment-omissions'
on:
  schedule:
    - cron: '0 0 * * 1'

jobs:
  check-for-deployment-omissions:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: mofmof/check-for-deployment-omissions@v0
        with:
          base_branch: 'main'
          deployment_environment_name: 'production'
          github_token: ${{ secrets.GITHUB_TOKEN }}
          slack_token: ${{ secrets.SLACK_TOKEN }}
          slack_channel: ${{ vars.SLACK_CHANNEL }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published