Skip to content

Commit

Permalink
feat: add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rockyj committed Jan 9, 2025
1 parent ee17fa1 commit 31bf224
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/approval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ permissions:

jobs:
approval:
timeout-minutes: 10
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Debug Event
run: |
echo "Event name: ${{ github.event_name }}"
echo "Ref: ${{ github.ref }}"
echo "SHA: ${{ github.sha }}"
echo "Runner OS: ${{ runner.os }}"
echo "Runner Name: ${{ runner.name }}"
- name: Create Deployment Issue
if: github.event_name == 'push' || github.event_name == 'pull_request'
Expand Down Expand Up @@ -76,6 +82,7 @@ jobs:
needs: approval
if: github.event_name == 'issue_comment' && contains(github.event.comment.body, 'confirm')
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Close Approval Issue
uses: actions/github-script@v6
Expand Down

0 comments on commit 31bf224

Please sign in to comment.