-
Notifications
You must be signed in to change notification settings - Fork 112
ci(release): Switch from action-prepare-release to Craft #5527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 10 commits
1736a75
2af3714
c6c86bb
e876603
3720f92
38dd030
4dc3375
bc1ec1a
32733fe
630e289
60fdab7
d13a73d
904e96d
f1b80cd
adbad65
90df28a
522251b
364cb0b
ae8fa20
f866211
c47299a
1b3f60d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ jobs: | |
| - 6379:6379 | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ jobs: | |
| apt-get update | ||
| apt-get install -y --no-install-recommends git ca-certificates gcc libc6-dev curl make zip | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -66,7 +66,7 @@ jobs: | |
| runs-on: ubuntu-22.04-arm | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -100,7 +100,7 @@ jobs: | |
| runs-on: macos-14 | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -133,7 +133,7 @@ jobs: | |
| runs-on: windows-2022 | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ jobs: | |
| }')[matrix.build-arch] }} | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -70,7 +70,7 @@ jobs: | |
| runs-on: macos-14 | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -117,7 +117,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Changelog Preview | ||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - edited | ||
| - labeled | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| changelog-preview: | ||
| uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2 | ||
| secrets: inherit | ||
cursor[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,16 @@ on: | |
| types: [opened, synchronize, reopened, edited, ready_for_review, labeled, unlabeled] | ||
| merge_group: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Changelogs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ jobs: | |
| sudo apt-get update | ||
| sudo apt-get install -y libcurl4-openssl-dev | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -107,7 +107,7 @@ jobs: | |
| sudo apt-get update | ||
| sudo apt-get install -y libcurl4-openssl-dev | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -128,7 +128,7 @@ jobs: | |
| outputs: | ||
| devservices-files-changed: ${{ steps.changes.outputs.devservices-files-changed }} | ||
| steps: | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.1.7 | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.1.7 | ||
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
| name: Check for file changes | ||
| id: changes | ||
|
|
@@ -157,7 +157,7 @@ jobs: | |
| if: "!startsWith(github.ref, 'refs/heads/release-library/')" | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -219,7 +219,7 @@ jobs: | |
| ghcr.io/getsentry/objectstore:nightly \ | ||
| run | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -250,7 +250,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -365,7 +365,7 @@ jobs: | |
| run: | | ||
| curl -sL https://sentry.io/get-cli/ | bash | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -441,7 +441,7 @@ jobs: | |
| run: | | ||
| curl -sL https://sentry.io/get-cli/ | bash | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -506,7 +506,7 @@ jobs: | |
| REVISION: "${{ github.event.pull_request.head.sha || github.sha }}" | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| - uses: docker/setup-qemu-action@v3 | ||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
@@ -572,7 +572,7 @@ jobs: | |
| if: "!startsWith(github.ref, 'refs/heads/release-library/') && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && needs.build-setup.outputs.full_ci == 'true'" | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| - uses: docker/setup-qemu-action@v3 | ||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
@@ -783,7 +783,7 @@ jobs: | |
| ghcr.io/getsentry/objectstore:nightly \ | ||
| run | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -832,7 +832,7 @@ jobs: | |
| steps: | ||
| # Checkout Sentry and run integration tests against latest Relay | ||
| - name: Checkout Sentry | ||
| uses: actions/[email protected] | ||
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| repository: getsentry/sentry | ||
| path: sentry | ||
|
|
@@ -902,7 +902,7 @@ jobs: | |
| needs: devservices-files-changed | ||
| if: needs.devservices-files-changed.outputs.devservices-files-changed == 'true' | ||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| name: Checkout repository | ||
|
|
||
| - name: Get devservices version | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ jobs: | |
| sudo apt-get update | ||
| sudo apt-get install -y libcurl4-openssl-dev | ||
|
|
||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
|
|
@@ -54,7 +54,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
|
|
||
| - name: Install Rust Toolchain | ||
| run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,44 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Version to release (optional) | ||
| required: false | ||
| force: | ||
| description: Force a release even when there are release-blockers (optional) | ||
| description: Force a release even when there are release-blockers | ||
| required: false | ||
|
|
||
| schedule: | ||
| # We want the release to be at 9-10am Pacific Time | ||
| # We also want it to be 1 hour before the on-prem release | ||
| - cron: "0 17 15 * *" | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| name: "Release a new Relay version" | ||
|
|
||
| name: Release a new Relay version | ||
| steps: | ||
| - name: Get auth token | ||
| id: token | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2 | ||
| with: | ||
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||
|
|
||
| - uses: actions/checkout@v6.0.1 | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | ||
| with: | ||
| token: ${{ steps.token.outputs.token }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Prepare release | ||
| uses: getsentry/action-prepare-release@v1 | ||
| uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | ||
| with: | ||
| version: ${{ github.event.inputs.version }} | ||
| force: ${{ github.event.inputs.force }} | ||
| version: ${{ inputs.version }} | ||
| force: ${{ inputs.force }} | ||
| calver: true | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,37 @@ | ||
| name: Release Library | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Version to release | ||
| required: true | ||
| description: Version to release (or "auto") | ||
| required: false | ||
| force: | ||
| description: Force a release even when there are release-blockers (optional) | ||
| description: Force a release even when there are release-blockers | ||
| required: false | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| name: "Release a new librelay version" | ||
|
|
||
| name: Release a new version | ||
| steps: | ||
| - name: Get auth token | ||
| id: token | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | ||
| with: | ||
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||
|
|
||
| - uses: actions/[email protected] | ||
| with: | ||
| token: ${{ steps.token.outputs.token }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Prepare release | ||
| uses: getsentry/action-prepare-release@v1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | ||
| with: | ||
| version: ${{ github.event.inputs.version }} | ||
| force: ${{ github.event.inputs.force }} | ||
| path: py | ||
| - name: Get auth token | ||
| id: token | ||
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2 | ||
| with: | ||
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | ||
| with: | ||
| token: ${{ steps.token.outputs.token }} | ||
| fetch-depth: 0 | ||
| - name: Prepare release | ||
| uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce # v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| force: ${{ inputs.force }} | ||
| path: py | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ jobs: | |
| outputs: | ||
| gocd: ${{ steps.changes.outputs.gocd }} | ||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - name: Check for relevant file changes | ||
| uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | ||
| id: changes | ||
|
|
@@ -39,7 +39,7 @@ jobs: | |
| id-token: "write" | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| - id: 'auth' | ||
| uses: google-github-actions/auth@v3 | ||
| with: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want this, also it does not use the changelog.md we actually curate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this only makes sense if you are using automated changelogs. Happy to remove but I also recommend giving automated changelogs a shot. It allows curation too: https://getsentry.github.io/craft/configuration/#custom-changelog-entries-from-pr-descriptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am interested about the automated snapshots, but I'd like to review/look into that separately. From your presentation it sounds like the automated changelogs can possibly do what we're interested in now, but we still have a few workflows tied to the manual process.