Skip to content

Experiment with environment variables #15

Experiment with environment variables

Experiment with environment variables #15

Workflow file for this run

---
name: Environment Variables
on:
- push
- workflow_dispatch
env:
FORCE_COLOR: 1
ENVIRONMENT: gh_actions
jobs:
env_vars:
runs-on: "ubuntu-24.04"
steps:
- run: |
echo "Workflow name: $GITHUB_WORKFLOW"
echo "Repository: $GITHUB_REPOSITORY"
- run: |
echo "Environment: $ENVIRONMENT"
echo "Secret: ${{ secrets.MY_SECRET }}"
- run: env
- name: "Testing variables in ${{ env.ENVIRONMENT }}"
run: |
echo "Environment: ${{ env.ENVIRONMENT }}"