Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
davosian committed Aug 12, 2024
1 parent 86ebd10 commit 2d1b905
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ name: Post Hook Workflow

on:
workflow_run:
workflows: ["Workflow test"]
workflows: ["Workflow name to check status on"]
types:
- completed

Expand All @@ -56,15 +56,19 @@ jobs:
op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
slack_channel_id: C064M8AVB5G
workflow_completion_notification: "true"
workflow: ${{ github.workflow }}
workflow: ${{ github.event.workflow_run.name }}
workflow_run_id: ${{ github.event.workflow_run.id }}
repository: ${{ github.repository }}
repository_branch: ${{ github.ref }}
job_status: ${{ job.status }}
repository: ${{ github.repository_owner }}/${{ github.event.workflow_run.repository.name }}
repository_branch: ${{ github.event.workflow_run.head_branch }}
job_status: ${{ github.event.workflow_run.conclusion }}

```


## Header information

`workflows`: the `name` of the workflow to watch (first field in the workflow's yaml).

## Parameters

`op_service_account_token`: the 1Password service account token. Ideally this one is saved as GitHub secret.
Expand Down

0 comments on commit 2d1b905

Please sign in to comment.