mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 14:01:30 +01:00
ci: Define default shell for all workflows (#47883)
GitHub allows defining a default shell for all jobs on the workflow level, which we did not use before, yet practically did when it comes down to our usage of `named::bash`. Since this makes stuff quite verbose, I decided on using the defaults instead so the workflows become somewhat easier to audit when reading the generated files. Powershell steps continue to use Powershell, only the default for bash scripts was modified. Release Notes: - N/A
This commit is contained in:
@@ -75,7 +75,6 @@ jobs:
|
||||
fi
|
||||
echo "Found previous rollout at commit: $PREV_COMMIT"
|
||||
echo "prev_commit=$PREV_COMMIT" >> "$GITHUB_OUTPUT"
|
||||
shell: bash -euxo pipefail {0}
|
||||
working-directory: zed
|
||||
- id: calc-changes
|
||||
name: extension_workflow_rollout::rollout_workflows_to_extension::get_removed_files
|
||||
@@ -101,7 +100,6 @@ jobs:
|
||||
|
||||
echo "Files to remove: $REMOVED_FILES"
|
||||
echo "removed_files=$REMOVED_FILES" >> "$GITHUB_OUTPUT"
|
||||
shell: bash -euxo pipefail {0}
|
||||
working-directory: zed
|
||||
- name: extension_workflow_rollout::rollout_workflows_to_extension::sync_workflow_files
|
||||
run: |
|
||||
@@ -125,12 +123,10 @@ jobs:
|
||||
else
|
||||
cp zed/extensions/workflows/shared/*.yml extension/.github/workflows/
|
||||
fi
|
||||
shell: bash -euxo pipefail {0}
|
||||
- id: short-sha
|
||||
name: extension_workflow_rollout::rollout_workflows_to_extension::get_short_sha
|
||||
run: |
|
||||
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
||||
shell: bash -euxo pipefail {0}
|
||||
working-directory: zed
|
||||
- id: create-pr
|
||||
name: extension_workflow_rollout::rollout_workflows_to_extension::create_pull_request
|
||||
@@ -156,7 +152,6 @@ jobs:
|
||||
cd extension
|
||||
gh pr merge "$PR_NUMBER" --auto --squash
|
||||
fi
|
||||
shell: bash -euxo pipefail {0}
|
||||
env:
|
||||
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
|
||||
timeout-minutes: 10
|
||||
@@ -182,7 +177,6 @@ jobs:
|
||||
run: |
|
||||
git config user.name "zed-zippy[bot]"
|
||||
git config user.email "234243425+zed-zippy[bot]@users.noreply.github.com"
|
||||
shell: bash -euxo pipefail {0}
|
||||
- name: extension_workflow_rollout::create_rollout_tag::update_rollout_tag
|
||||
run: |
|
||||
if git rev-parse "extension-workflows" >/dev/null 2>&1; then
|
||||
@@ -193,5 +187,7 @@ jobs:
|
||||
echo "Creating new tag 'extension-workflows' at $(git rev-parse --short HEAD)"
|
||||
git tag "extension-workflows"
|
||||
git push origin "extension-workflows"
|
||||
shell: bash -euxo pipefail {0}
|
||||
timeout-minutes: 1
|
||||
defaults:
|
||||
run:
|
||||
shell: bash -euxo pipefail {0}
|
||||
|
||||
Reference in New Issue
Block a user