diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml new file mode 100644 index 0000000..28fac03 --- /dev/null +++ b/.github/workflows/trigger.yaml @@ -0,0 +1,29 @@ +name: gh-actions branch triggered workflow + +on: + workflow_dispatch: + inputs: + name: + description: 'name' + required: true + repository_dispatch: + types: [ my-event ] + issue_comment: + types: [ created ] + +jobs: + build: + name: run-workflow + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: refs/heads/gh-actions # Specify the feature branch here + fetch-depth: 0 + + - name: This is FROM FEATURE Branch + run: echo "running on gh-actions branch" + + - name: Test output + run: echo $(cat .test_output) \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file