From becfba1f68c1ccaa7ce688790f4e00d1caae6275 Mon Sep 17 00:00:00 2001 From: _Tradam Date: Tue, 9 May 2023 23:04:29 -0400 Subject: Update send_autobuild_webdocs_ping.yml --- .github/workflows/send_autobuild_webdocs_ping.yml | 39 +++++++++++++++++------ 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/.github/workflows/send_autobuild_webdocs_ping.yml b/.github/workflows/send_autobuild_webdocs_ping.yml index 5d60d0c..1bf5e0c 100644 --- a/.github/workflows/send_autobuild_webdocs_ping.yml +++ b/.github/workflows/send_autobuild_webdocs_ping.yml @@ -1,18 +1,39 @@ -name: Remote Dispatch Action Initiator +# This is a basic workflow to help you get started with Actions +name: CI + +# Controls when the workflow will run on: + # Triggers the workflow on push or pull request events but only for the "main" branch push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - ping-pong: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: PING - Dispatch initiating repository event - if: github.event.action != 'pong' - run: | - curl -X post https://api.github.com/repos/CatgirlsRodeo/dev.catgirls.rodeo/dispatches \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.access_token }}" \ - -d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}' + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + - name: remote stuff + run: | + curl -XPOST -u "${{ secrets.ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/fabyanMikhael/TestA/dispatches --data '{"event_type": "build_application"}' + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. -- cgit v1.2.3