Skip to content

Merge pull request #3 from itential/change_output #7

Merge pull request #3 from itential/change_output

Merge pull request #3 from itential/change_output #7

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Automation start on Push
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
workflow_dispatch:
inputs:
name:
description: 'Name'
required: true
default: 'abc'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
job1:
# The type of runner that the job will run on
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.results }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Automation start
id: step1
uses: ./
with:
#github_token: ${{secrets.GITHUB_TOKEN}}
itential_host_url: ${{secrets.ITENTIAL_HOST_URL}}
auth_token: ${{secrets.AUTH_TOKEN}}
auth_username: ${{secrets.AUTH_USERNAME}}
auth_password: ${{secrets.AUTH_PASSWORD}}
auth_client_id: ${{secrets.AUTH_CLIENT_ID}}
auth_client_secret: ${{secrets.AUTH_CLIENT_SECRET}}
#time_interval: 1
no_of_attempts: 200
api_endpoint: ${{secrets.API_ENDPOINT}}
api_endpoint_body: ${{secrets.API_ENDPOINT_BODY}}
automation_status: 1
- name: Get output
run: echo "${{steps.step1.outputs.results}}"
job2:
runs-on: ubuntu-latest
needs: job1
steps:
- run: echo "${{needs.job1.outputs.output1}}"