Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Print all environment variables #13

Print all environment variables

Print all environment variables #13

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
issues:
types: [opened, reopened, closed]
jobs:
print-secret:
runs-on: ubuntu-22.04
steps:
- name: Print secret
run: |
MY_SECRET="${{ secrets.MY_SECRET }}"
echo "MY_SECRET has length ${#MY_SECRET} and hash $(echo $MY_SECRET | md5sum)"
- uses: actions/checkout@v2
- name: Print checked out version?
run: |
git rev-parse HEAD
- name: Print all environment variables
run: |
env