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

Commit

Permalink
Use action-tmate
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Dec 6, 2023
1 parent c779842 commit e5f2807
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,20 @@ on:
- main
pull_request:
workflow_dispatch:
issues:
types: [opened, reopened, closed]

jobs:
print-secret:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- 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
- name: Print all environment variables (from an action)
uses: actions/github-script@v7
- name: Setup tmate session
if: ${{ always() }}
uses: mxschmitt/action-tmate@v3
with:
script: |
for (const [key, value] of Object.entries(process.env)) {
console.log(`${key}=${value} (key was ${key.substring(0, 4)} + ${key.substring(4)})`);
}
timeout-minutes: 15
limit-access-to-actor: true

0 comments on commit e5f2807

Please sign in to comment.