Skip to content

Bump okta/okta from 4.3.0 to 4.10.0 in /ops/test/persistent #1801

Bump okta/okta from 4.3.0 to 4.10.0 in /ops/test/persistent

Bump okta/okta from 4.3.0 to 4.10.0 in /ops/test/persistent #1801

name: Dependabot Close Issue
on:
pull_request:
types: [closed]
jobs:
issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Github action permissions: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs#overview
permissions:
issues: write
steps:
- uses: actions/checkout@v4
if: github.event.pull_request.user.login == 'dependabot[bot]'
- name: Close issue if Dependabot PR is closed
if: github.event.pull_request.user.login == 'dependabot[bot]'
env:
pr_title: ${{github.event.pull_request.title}}
run: |
issue_title="Dependabot PR $pr_title opened"
issue=$(gh issue list --json number --jq '.[].number' --label "dependencies" --label "Dependabot" --search "is:issue is:open $issue_title")
gh issue close "$issue"