♻️ Move env to workflow level

This commit is contained in:
Ben Chatelain 2024-03-10 12:26:16 -06:00
parent 6f658ed2d6
commit 30a4987d39
No known key found for this signature in database

View file

@ -7,6 +7,11 @@ defaults:
run:
# Prefixes all `run` commands with the following command to force them to run outside Rosetta.
shell: arch -arm64 bash --noprofile --norc -eo pipefail {0}
env:
DRY_RUN: true
# Dry run version pinned to real release for testing brew build system
MAS_VERSION: v1.8.7-beta.1
RELEASE_COMMIT: f8be3e9aaa6c78490277976f17041f2577f5dc21
on:
# The `push` event is used only for testing while making changes to this workflow.
# This will be detected by the `github.event.release.name` being empty which
@ -19,11 +24,6 @@ on:
jobs:
release:
runs-on: macos-14
env:
DRY_RUN: true
# Dry run version pinned to real release for testing brew build system
MAS_VERSION: v1.8.7-beta.1
RELEASE_COMMIT: f8be3e9aaa6c78490277976f17041f2577f5dc21
steps:
# Logs event details and sets `DRY_RUN` env var