Skip to content

Commit

Permalink
Merge pull request #60 from cfv-project/ci-py3-dependencies-2
Browse files Browse the repository at this point in the history
Fix CI Python3 Dependencies
  • Loading branch information
lxp authored May 19, 2024
2 parents b86ff13 + a704bff commit c968dfe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-python3-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI python3 dependencies
name: CI python3 Dependencies

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -9,6 +9,9 @@ on:
schedule:
- cron: '37 15 * * 5'

permissions:
issues: write

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down Expand Up @@ -38,11 +41,11 @@ jobs:
// Check if Github issue already exists
const issueTitle = 'Add support for Python ' + latestPythonMinorVersion
const issues = await github.paginate(github.rest.issues.listForRepo({
const issues = await github.paginate(github.rest.issues.listForRepo, {
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
}))
})
const existingIssue = issues.find(issue => issue.title === issueTitle)
if (existingIssue) {
console.log('Issue already exists')
Expand Down

0 comments on commit c968dfe

Please sign in to comment.