Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
gh pr create --title "[$GITHUB_REF_NAME] $title" \
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
--head $branch \
--base $GITHUB_REF_NAME
--base $GITHUB_REF_NAME \
--label patch-release
6 changes: 5 additions & 1 deletion .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ jobs:
uses: open-telemetry/opentelemetry-python-contrib/.github/workflows/core_contrib_test_0.yml@main
with:
CORE_REPO_SHA: ${{ github.sha }}
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
6 changes: 5 additions & 1 deletion .github/workflows/lint_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/misc_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ jobs:
gh pr create --title "[$GITHUB_REF_NAME] $message" \
--body "$message." \
--head $branch \
--base $GITHUB_REF_NAME
--base $GITHUB_REF_NAME \
--label release
6 changes: 4 additions & 2 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ jobs:
gh pr create --title "[$RELEASE_BRANCH_NAME] $message" \
--body "$message." \
--head $branch \
--base $RELEASE_BRANCH_NAME
--base $RELEASE_BRANCH_NAME \
--label release

create-pull-request-against-main:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -183,4 +184,5 @@ jobs:
gh pr create --title "$message" \
--body "$body" \
--head $branch \
--base main
--base main \
--label release
6 changes: 5 additions & 1 deletion .github/workflows/templates/lint.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/templates/misc.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/templates/test.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ concurrency:

env:
CORE_REPO_SHA: main
CONTRIB_REPO_SHA: main
CONTRIB_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'patch-release') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
PIP_EXISTS_ACTION: w

jobs:
Expand Down
Loading