tests step by step #14
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: A test job for tr | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Test just output the message | |
uses: ./ | |
with: | |
text: | | |
Hello DevOps | |
# - name: Test cowsay on the comment | |
# uses: ./ | |
# with: | |
# message: 'Hello, World with random' | |
# cow: 'random' | |
# cowsay_on_comment: true | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Test set output pipeline | |
# id: cowsay_output_id | |
# uses: ./ | |
# with: | |
# message: 'Hello, World' | |
# cow: 'gopher' | |
# cowsay_to_output: 'cowsay' | |
# - name: Print output | |
# run: | | |
# echo "${{ steps.cowsay_output_id.outputs.cowsay }}" |