Skip to content

Commit

Permalink
🚧 create pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Coperh committed Nov 11, 2024
1 parent 0d93755 commit f11c1fb
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 48 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: ci

on:
push:
branches:
- master
tags:
- '**'
pull_request:
# push:
# branches:
# - master
# tags:
# - '**'
# pull_request:
workflow_dispatch:

env:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: code-quality

on:
push:
branches:
- master
paths:
- '**.py'
- '**.yml'
pull_request:
paths:
- '**.py'
- '**.yml'
# push:
# branches:
# - master
# paths:
# - '**.py'
# - '**.yml'
# pull_request:
# paths:
# - '**.py'
# - '**.yml'
workflow_dispatch:

jobs:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
# push:
# branches: [ master ]
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [ master ]
schedule:
- cron: '36 0 * * 0'

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/generate-postman-collection.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: generate-postman-collection

on:
push:
paths:
- "src/objects/api/v*/openapi.yaml"
- ".github/workflows/generate-postman-collection.yml"
branches:
- '**'
# push:
# paths:
# - "src/objects/api/v*/openapi.yaml"
# - ".github/workflows/generate-postman-collection.yml"
# branches:
# - '**'
workflow_dispatch:

jobs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/generate-sdks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: generate-sdks

on:
push:
paths:
- "src/objects/api/v*/openapi.yaml"
- ".github/workflows/generate-sdks.yml"
branches:
- '**'
# push:
# paths:
# - "src/objects/api/v*/openapi.yaml"
# - ".github/workflows/generate-sdks.yml"
# branches:
# - '**'
workflow_dispatch:

jobs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lint-oas.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: lint-oas

on:
push:
paths:
- "src/objects/api/v*/openapi.yaml"
- .github/workflows/lint-oas.yml
branches:
- '**'
# push:
# paths:
# - "src/objects/api/v*/openapi.yaml"
# - .github/workflows/lint-oas.yml
# branches:
# - '**'
workflow_dispatch:

jobs:
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/oaf-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
python-version: 3.11
cache: 'pip'
cache-dependency-path: 'requirements/dev.txt'
cache-dependency-path: 'requirements/*.txt'
- name: Install dependencies
run: pip install $(grep "pip-tools==" requirements/dev.txt)
- name: Run compile dependencies
Expand All @@ -37,16 +37,31 @@ jobs:
with:
python-version: 3.11
cache: 'pip'
cache-dependency-path: 'requirements/dev.txt'
cache-dependency-path: 'requirements/*.txt'
- name: Install dependencies
run: pip install $(grep "pip-tools==" requirements/dev.txt)
- name: Run compile dependencies
run: ./bin/compile_dependencies.sh --upgrade-package open-api-framework
- name: Get OAF Version
run: echo "OAF_VERSION=$(grep -Po '(?<=open-api-framework==)[^\n]*' requirements/dev.txt)" >> $GITHUB_ENV
# Git
- name: Create and Checkout Branch
run: git checkout -q -B update/open-api-framework-${{env.OAF_VERSION}}
- name: Commit Changes
run: "git commit -i requirements/*.txt -m ':arrow_up: Update Open-API-Framework to ${{env.OAF_VERSION}}'"
- name: Push Changes
run: git push -f --set-upstream origin update/open-api-framework-${{env.OAF_VERSION}}
# GitHub
- name: Check for Existing PR
id: existing-pr
continue-on-error: true
run: gh pr view update/open-api-framework-${{env.OAF_VERSION}} >> /dev/null
env:
GH_TOKEN: ${{ github.token }}
- name: Create New PR
run: |
gh pr create --title "Update Open API Framework to ${{env.OAF_VERSION}}"\
--body "[Auto generated with github action.]($ACTION_URL)"
env:
GH_TOKEN: ${{ github.token }}
ACTION_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
12 changes: 6 additions & 6 deletions .github/workflows/oas-check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: check-oas

on:
push:
paths:
- "src/objects/api/*/openapi.yaml"
- .github/workflows/oas-check.yml
branches:
- '**'
# push:
# paths:
# - "src/objects/api/*/openapi.yaml"
# - .github/workflows/oas-check.yml
# branches:
# - '**'
workflow_dispatch:

jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: quick-start

on: [push]
on:
# [push]
workflow_dispatch:

jobs:
run:
Expand Down

0 comments on commit f11c1fb

Please sign in to comment.