Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
permissions:
contents: write
pull-requests: write
uses: go-openapi/ci-workflows/.github/workflows/auto-merge.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/auto-merge.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/bump-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
bump-release:
permissions:
contents: write
uses: go-openapi/ci-workflows/.github/workflows/bump-release.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/bump-release.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
with:
bump-type: ${{ inputs.bump-type }}
tag-message-title: ${{ inputs.tag-message-title }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
permissions:
contents: read
security-events: write
uses: go-openapi/ci-workflows/.github/workflows/codeql.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/codeql.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
permissions:
pull-requests: write
contents: write
uses: go-openapi/ci-workflows/.github/workflows/contributors.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/contributors.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ on:

jobs:
test:
uses: go-openapi/ci-workflows/.github/workflows/go-test.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/go-test.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/monitor-bot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
contents: write
pull-requests: write
statuses: read
uses: go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml@2e57e83146e049b5dfb8116ba16a09b2da27b3c5 # v0.3.3
uses: go-openapi/ci-workflows/.github/workflows/monitor-bot-pr.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
permissions:
contents: read
security-events: write
uses: go-openapi/ci-workflows/.github/workflows/scanner.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/scanner.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Create release
permissions:
contents: write
uses: go-openapi/ci-workflows/.github/workflows/release.yml@f00f5763ddb0c59105de5f565da8cac323fce2bf # v0.3.5
uses: go-openapi/ci-workflows/.github/workflows/release.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
with:
tag: ${{ github.ref_name }}
secrets: inherit
60 changes: 60 additions & 0 deletions .github/workflows/webhook-announcements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Webhook Announcements

# invoke the common webhook-announcements workflow, scanning README.
#
# Two modes:
#
# * push: diff on "## Announcements" section exercises the
# real before..after detection and post to discord channel.
#
# * workflow_dispatch: a manual live run. Optionally provide an arbitrary webhook URL and
# it POSTs for real. By default it diffs against the git empty tree, so every
# announcement currently in the fixture is posted — no need to craft a diff.
#
# NOTE: the webhook URL you type is a workflow_dispatch input and is therefore
# visible in the run's UI/logs. Use a throwaway test webhook (and/or rotate it
# afterwards), not the production go-openapi webhook.

permissions:
contents: read

on:
push:
branches:
- master
paths:
- 'README.md'

workflow_dispatch:
inputs:
webhook-url:
description: |
Webhook URL to POST to (e.g. a test Discord channel webhook).
Visible in run logs — use a throwaway webhook.
type: string
default: ''
compare-base:
description: |
Git ref to diff the fixture against. The default empty-tree SHA posts
every announcement currently in the fixture.
type: string
default: ""
dry-run:
description: |
Print payloads instead of posting.
type: choice
options:
- 'false'
- 'true'
default: 'false'

jobs:
announce:
uses: go-openapi/ci-workflows/.github/workflows/webhook-announcements.yml@af4c93f45481ea7d24ac2a9858272cc03daf424e # v0.4.0
with:
scanned-markdown: README.md
# On push: normal before..after diff (empty
# compare-base). On dispatch: honor the provided inputs.
dry-run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run || 'false' }}
compare-base: ${{ github.event_name == 'workflow_dispatch' && inputs.compare-base || '' }}
secrets: inherit
Loading