My question is I need to run the specific job in Repo B workflow.How should i enable it in Repo A? #40149
Replies: 2 comments
-
Hi there @Npraveenreddy and welcome to our community! Thank you for asking a great question 🙂 To get started, introduce yourself in our official introduction thread |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hi All..
I have two repo's A,B..I need to trigger the specific job in the repo B when i triggered from repo A using GitHub Actions.
Repo: A workflow
name: Deploy
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Run Web App
runs-on: ubuntu-latest
container:
image: openjdk:8-jdk-slim
steps:
- name: Build Web App
run: |
echo "Build Web App test"
sleep 10s
- uses: convictional/[email protected]
with:
owner: ***
repo: ***
github_token: ${{ secrets.G_ACCESS_TOKEN }}
workflow_file_name: testing.yml
ref: master
Repo: B workflow
name: Deploy
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Run API
runs-on: ubuntu-latest
steps:
- name: Build API
run: |
echo "Build API"
sleep 10s
deploytest:
name: deploytest
runs-on: ubuntu-latest
steps:
- name: Build API
run: |
echo "Build API"
sleep 10s
Repo:B has two jobs build,deploytest
Now if i run the Above Repo A pipeline it will Run the Repo A pipeline and then it will trigger the Repo B pipeline(Downstream Jobs).
My question is I need to run the specific job in Repo B workflow.How should i enable it in Repo A?
FYI: @github-staff
Beta Was this translation helpful? Give feedback.
All reactions