update-slack-info

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Update Slack Info - GitHub Action

A GitHub Action to update the Slack Information.

Usage

You can use this action after any other action. Here is an example setup of this action:

  1. Create a .github/workflows/update-slack-info.yml file in your GitHub repo.
  2. Add the following code to the update-slack-info.yml file.
on: push
name: Update Slack Info Demo
jobs:
  slackNotification:
    name: Update Slack Info
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Update Slack Info
      uses: giantswarm/update-slack-info@v2
      with:
        filepath: './squads.yaml'
      env:
        SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
  1. Create SLACK_TOKEN secret using GitHub Action's Secret. You can generate a Slack token from here. Taking into account it needs these scopes usergroups:read, usergroups:write, users:read and users:read.email.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL