jiayuasu commented on PR #1651:
URL: https://github.com/apache/sedona/pull/1651#issuecomment-2436803739
A quick example about global env from ChatGPT
```
name: Matrix CI Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
# Define a matrix of input values
strategy:
matrix:
environment: [staging, production]
node: [16, 18]
# Use the matrix value inside `env`
env:
ENV_NAME: ${{ matrix.environment }}
NODE_VERSION: ${{ matrix.node }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Print Matrix Inputs as Environment Variables
run: |
echo "Environment: $ENV_NAME"
echo "Node Version: $NODE_VERSION"
- name: Use Environment-Specific Logic
run: |
if [ "$ENV_NAME" == "production" ]; then
echo "This is a production build.";
else
echo "This is a staging build.";
fi
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]