Skip to content

Commit

Permalink
ci: Add job timeout (#2)
Browse files Browse the repository at this point in the history
* ci: Update assign-project so it works in this repo

* ci: Set timeout in our Github actions
  • Loading branch information
MathieuVeber authored Nov 10, 2023
1 parent 6ff6ba1 commit 6aca074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/assign-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ on:
jobs:
project:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:

- id: addItem
name: Add to project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id}}
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id || 2}}
github-token: ${{ secrets.ASSIGN_TO_PROJECT_TOKEN }}

- if: github.event_name == 'pull_request'
name: Set status
uses: hedia-team/[email protected]
with:
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id}}
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id || 2}}
github-token: ${{ secrets.ASSIGN_TO_PROJECT_TOKEN }}
item-id: ${{ steps.addItem.outputs.itemId }}
field-keys: Status
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
jobs:
build-test:
runs-on: ubuntu-latest
timeout-minutes: 10

services:
postgres:
Expand Down

0 comments on commit 6aca074

Please sign in to comment.