Sha256: 69f8ab3f5e542b78ad3ec11c72ad44d873ecc2513013cd1b988b2a15ea727181

Contents?: true

Size: 1.15 KB

Versions: 16

Compression:

Stored size: 1.15 KB

Contents

name: Slack Post
on:
  workflow_dispatch: # Manual trigger
    inputs:
      github_ref:
        description: 'Manually provided value for GITHUB_RELEASE_TAG of a release'
        required: true
        type: string

  # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
  release:
    types: [published]
jobs:
  build:
    name: Slack Post
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout the needed file only ./bin/announce_release_on_slack.py'
        uses: actions/checkout@v3
      - run: |
          if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then
            export GITHUB_RELEASE_TAG=${{ inputs.github_ref }}
          else # release event
            export GITHUB_RELEASE_TAG=$(basename ${GITHUB_REF})
          fi
          echo "New release published ${GITHUB_RELEASE_TAG}"
          pip3 install PyGithub
          echo $PWD
          ls -lah
          ./bin/announce_release_on_slack.py
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
          SLACK_CHANNEL_ID_RELEASES: ${{ secrets.SLACK_CHANNEL_ID_RELEASES }}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
instana-1.217.1 .github/workflows/release-notification-on-slack.yml
instana-1.217.0 .github/workflows/release-notification-on-slack.yml
instana-1.216.0 .github/workflows/release-notification-on-slack.yml
instana-1.215.1 .github/workflows/release-notification-on-slack.yml
instana-1.215.0 .github/workflows/release-notification-on-slack.yml
instana-1.214.4 .github/workflows/release-notification-on-slack.yml
instana-1.214.3 .github/workflows/release-notification-on-slack.yml
instana-1.214.2 .github/workflows/release-notification-on-slack.yml
instana-1.214.1 .github/workflows/release-notification-on-slack.yml
instana-1.214.0 .github/workflows/release-notification-on-slack.yml
instana-1.213.3 .github/workflows/release-notification-on-slack.yml
instana-1.213.2 .github/workflows/release-notification-on-slack.yml
instana-1.213.1 .github/workflows/release-notification-on-slack.yml
instana-1.213.0 .github/workflows/release-notification-on-slack.yml
instana-1.212.0 .github/workflows/release-notification-on-slack.yml
instana-1.211.0 .github/workflows/release-notification-on-slack.yml