Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/fix_clip_media_review
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Dec 3, 2024
2 parents 7eede7c + c6d73f4 commit 879319a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/assign_pr_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,46 @@ on:
workflow_dispatch:
inputs:
pr_number:
type: number
type: string
description: "Run workflow for this PR number"
required: true
project_id:
type: number
type: string
description: "Github Project Number"
required: true
default: 16
default: "16"
pull_request:
types:
- opened

env:
GH_TOKEN: ${{ github.token }}

jobs:
get-pr-repo:
runs-on: ubuntu-latest
outputs:
pr_repo_name: ${{ steps.get-repo-name.outputs.repo_name || github.event.pull_request.head.repo.full_name }}

# INFO `github.event.pull_request.head.repo.full_name` is not available on manual triggered (dispatched) runs
steps:
- name: Get PR repo name
if: ${{ github.event_name == 'workflow_dispatch' }}
id: get-repo-name
run: |
repo_name=$(gh pr view ${{ inputs.pr_number }} --json headRepository,headRepositoryOwner --repo ${{ github.repository }} | jq -r '.headRepositoryOwner.login + "/" + .headRepository.name')
echo "repo_name=$repo_name" >> $GITHUB_OUTPUT
auto-assign-pr:
needs:
- get-pr-repo
if: ${{ needs.get-pr-repo.outputs.pr_repo_name == github.repository }}
uses: ynput/ops-repo-automation/.github/workflows/pr_to_project.yml@main
with:
repo: "${{ github.repository }}"
project_id: ${{ inputs.project_id || 16 }}
pull_request_number: ${{ github.event.pull_request.number || inputs.pr_number }}
project_id: ${{ inputs.project_id != '' && fromJSON(inputs.project_id) || 16 }}
pull_request_number: ${{ github.event.pull_request.number || fromJSON(inputs.pr_number) }}
secrets:
token: ${{ secrets.YNPUT_BOT_TOKEN }}
# INFO fallback to default `github.token` is required for PRs from forks
# INFO organization secrets won't be available to forks
token: ${{ secrets.YNPUT_BOT_TOKEN || github.token}}
2 changes: 1 addition & 1 deletion client/ayon_hiero/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""Package declaring AYON addon 'hiero' version."""
__version__ = "0.4.0+dev"
__version__ = "0.4.1+dev"
2 changes: 1 addition & 1 deletion package.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "hiero"
title = "Hiero"
version = "0.4.0+dev"
version = "0.4.1+dev"
app_host_name = "hiero"
client_dir = "ayon_hiero"

Expand Down

0 comments on commit 879319a

Please sign in to comment.