Skip to content

try echo

try echo #4

name: SonarCloudTrigger
on:
push:
branches: [ "master", '*-ci' ]
pull_request:
branches: [ "master", '*-ci' ]
workflow_dispatch:
jobs:
build:
name: sonar_cloud_trigger
runs-on: ubuntu-latest
steps:
- name: Save pull request number to file
if: github.event_name == 'pull_request'
run: echo ${{ github.event.number }} > pull_request_number.txt
- name: Archive pull request number
if: github.event_name == 'pull_request'
# update when https://github.com/actions/upload-artifact/issues/543 is fixed
uses: actions/upload-artifact@v3
with:
name: pull_request_number
path: pull_request_number.txt
- name: Try echo
run: |
echo "Finished:"
echo ${{ toJson(github.event) }}"