mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-24 21:59:04 +00:00
The workflow run at https://github.com/zed-industries/zed/actions/runs/23557683707 succeeded but threw some warnings for a rather-soon Node.js 20 deprecation (June 2nd). Hence, this PR updates in that context mentioned workflows to newer versions from which on the actions will use Node.js 24. Namely, this updates - `actions/checkout` - `actions/create-github-app-token` and - `peter-evans/create-pull-request` to their latest version which includes said updates. As for their most recent versions, all of these actions just updated their versions to account for said deprecation. Release Notes: - N/A
60 lines
2.1 KiB
YAML
60 lines
2.1 KiB
YAML
# Generated from xtask::workflows::bump_patch_version
|
|
# Rebuild with `cargo xtask workflows`.
|
|
name: bump_patch_version
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: Branch name to run on
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
run_bump_patch_version:
|
|
if: github.repository_owner == 'zed-industries'
|
|
runs-on: namespace-profile-16x32-ubuntu-2204
|
|
steps:
|
|
- id: generate-token
|
|
name: steps::authenticate_as_zippy
|
|
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
|
|
with:
|
|
app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
|
|
private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
|
|
- name: steps::checkout_repo
|
|
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
|
|
with:
|
|
clean: false
|
|
ref: ${{ inputs.branch }}
|
|
token: ${{ steps.generate-token.outputs.token }}
|
|
- name: bump_patch_version::run_bump_patch_version::bump_patch_version
|
|
run: |
|
|
channel="$(cat crates/zed/RELEASE_CHANNEL)"
|
|
|
|
tag_suffix=""
|
|
case $channel in
|
|
stable)
|
|
;;
|
|
preview)
|
|
tag_suffix="-pre"
|
|
;;
|
|
*)
|
|
echo "this must be run on either of stable|preview release branches" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
which cargo-set-version > /dev/null || cargo install cargo-edit -f --no-default-features --features "set-version"
|
|
output="$(cargo set-version -p zed --bump patch 2>&1 | sed 's/.* //')"
|
|
git commit -am "Bump to $output for @$GITHUB_ACTOR"
|
|
git tag "v${output}${tag_suffix}"
|
|
git push origin HEAD "v${output}${tag_suffix}"
|
|
env:
|
|
GIT_COMMITTER_NAME: Zed Zippy
|
|
GIT_COMMITTER_EMAIL: 234243425+zed-zippy[bot]@users.noreply.github.com
|
|
GIT_AUTHOR_NAME: Zed Zippy
|
|
GIT_AUTHOR_EMAIL: 234243425+zed-zippy[bot]@users.noreply.github.com
|
|
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ inputs.branch }}
|
|
cancel-in-progress: true
|
|
defaults:
|
|
run:
|
|
shell: bash -euxo pipefail {0}
|