Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update approval test workflow #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/approval2.yml

This file was deleted.

57 changes: 23 additions & 34 deletions .github/workflows/slack-approval-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test slack-approval
name: Test slack approval

on:
push:
Expand All @@ -11,48 +11,37 @@ on:
- reopened

jobs:
approval:
approval2:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

fetch-depth: 0
- run: |
npm install

npm install
- name: slack-approval
uses: ./
env:
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
ENVIRONMENT: "production"
URL: "https://khimanand.com.np"
timeout-minutes: 10
approval-2nd-on:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- run: |
npm install

SLACK_APP_TOKEN: ${{ secrets.SLACK_APP__AFRESHY__APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_APP__AFRESHY__BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_APP__AFRESHY__SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ vars.SLACK__CHANNEL_ID__NOISE }}
APPROVERS: ""
REQUEST_REASON: "gha-slack-approval testing"
ENVIRONMENT: "`${{ github.ref_name }}`"
URL: <${{ github.server_url }}/${{ github.repository }}/compare/${{ github.event.before }}...${{ github.event.after }}|diff>
timeout-minutes: 120
- name: slack-approval
uses: ./
env:
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
ENVIRONMENT: "production"
URL: "https://khimananda.com.np"
timeout-minutes: 10

SLACK_APP_TOKEN: ${{ secrets.SLACK_APP__AFRESHY__APP_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_APP__AFRESHY__BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_APP__AFRESHY__SIGNING_SECRET }}
SLACK_CHANNEL_ID: ${{ vars.SLACK__CHANNEL_ID__NOISE }}
APPROVERS: ""
REQUEST_REASON: "gha-slack-approval testing timeout behavior (1 minute timeout)"
ENVIRONMENT: "`${{ github.ref_name }}`"
URL: <${{ github.server_url }}/${{ github.repository }}/compare/${{ github.event.before }}...${{ github.event.after }}|diff>
timeout-minutes: 1

Loading