Skip to content

Commit 0ec72ff

Browse files
committed
Sync .github/workflows/next-changelog.yml and tagging.yml to main
These two workflow files are auto-generated (# Generated file. DO NOT EDIT.). Restoring them to match origin/main so the revert PR introduces no workflow drift versus main. Changes since v1.113.0 that produced the divergence (now discarded): next-changelog.yml: - #5570 (5ea18ac): added pull_request_target types filter, dependabot skip, bumped actions/checkout v3.6.0 -> v6.0.2 - #5621 (ba1223c): runner-group switch deco-testing -> protected-runner tagging.yml: - #5621 (ba1223c): runner-group switch + Upload created tags artifact step - #5656 (5dc7b31): added packages workflow input + conditional tagging.py call - #5665 (eebe29b): removed duplicate '# Generated file' comment
1 parent 3c8dec7 commit 0ec72ff

2 files changed

Lines changed: 29 additions & 7 deletions

File tree

.github/workflows/next-changelog.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@ name: Check for NEXT_CHANGELOG.md Changes
44
on:
55
# Use pull_request_target to have access to GitHub API
66
pull_request_target:
7+
types: [opened, synchronize, reopened, edited]
78

89
jobs:
910
check-next-changelog:
11+
# Allow Dependabot PRs to pass without a changelog entry
12+
if: github.actor != 'dependabot[bot]'
1013
runs-on:
11-
group: databricks-deco-testing-runner-group
12-
labels: ubuntu-latest-deco
14+
group: databricks-protected-runner-group
15+
labels: linux-ubuntu-latest
1316

1417
steps:
1518
- name: Checkout code
16-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1720

1821
- name: Fetch list of changed files
1922
id: changed-files

.github/workflows/tagging.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ name: tagging
44
on:
55
# Manual dispatch.
66
workflow_dispatch:
7-
# No inputs are required for the manual dispatch.
7+
inputs:
8+
packages:
9+
description: 'Comma-separated list of packages to tag (e.g. "pkg1,pkg2"). Leave empty to tag all packages with pending releases.'
10+
required: false
11+
type: string
12+
default: ''
813

914
# NOTE: Temporarily disable automated releases.
1015
#
@@ -32,8 +37,8 @@ jobs:
3237
github.repository == 'databricks/databricks-sdk-java'
3338
environment: "release-is"
3439
runs-on:
35-
group: databricks-deco-testing-runner-group
36-
labels: ubuntu-latest-deco
40+
group: databricks-protected-runner-group
41+
labels: linux-ubuntu-latest
3742
steps:
3843
- name: Generate GitHub App Token
3944
id: generate-token
@@ -61,4 +66,18 @@ jobs:
6166
env:
6267
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
6368
GITHUB_REPOSITORY: ${{ github.repository }}
64-
run: uv run --locked tagging.py
69+
PACKAGES: ${{ inputs.packages }}
70+
run: |
71+
if [ -n "$PACKAGES" ]; then
72+
uv run --locked tagging.py --package "$PACKAGES"
73+
else
74+
uv run --locked tagging.py
75+
fi
76+
77+
- name: Upload created tags artifact
78+
if: always()
79+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
80+
with:
81+
name: created-tags
82+
path: created_tags.json
83+
if-no-files-found: ignore

0 commit comments

Comments
 (0)