This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Use action-tmate #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
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)" | |
- name: Setup tmate session | |
if: ${{ always() }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
timeout-minutes: 15 | |
limit-access-to-actor: true | |