github-commands #2
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
# This is a basic workflow to help you get started with Actions | |
name: github-commands | |
# Controls when the workflow will run | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "::debug::Set debug info" | |
- name: Create annotation for build error | |
run: echo "::warning file=github_commands.yml,line=3::Error name" | |
- name: Group of log lines | |
run: | | |
echo "::group::Grupo1" | |
echo "Inside group" | |
echo "::endgroup::" | |
## enmascarando informacion que se quiere no aparezca en los logs | |
- id: sets-a-secret | |
name: Generate, mask, and output a secret | |
run: | | |
the_secret=$((RANDOM)) | |
echo "::add-mask::$the_secret" | |
echo "secret-number=$the_secret" >> "$GITHUB_OUTPUT" | |
- name: Use that secret output (protected by a mask) | |
run: | | |
echo "the secret number is ${{ steps.sets-a-secret.outputs.secret-number }}" |