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/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger search records update in steampipe.io
uses: peter-evans/repository-dispatch@v3
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
with:
token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
repository: turbot/steampipe.io
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/trigger-steampipe-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
update:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3
with:
token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
repository: turbot/steampipe.io
Expand All @@ -25,14 +28,16 @@ jobs:


comment-link:
permissions:
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
steps:
- name: Get the deployment details
id: get_deployment_details
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
uses: actions/github-script@v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
with:
script: |
const branchName = 'docs/${{ github.event.pull_request.head.ref }}';
Expand All @@ -54,7 +59,7 @@ jobs:
}

- name: Add comment with preview link
uses: actions/github-script@v7
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
if: ${{ steps.get_deployment_details.outputs.foundDeployment == 'true' }}
with:
script: |
Expand Down
Loading