diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml new file mode 100644 index 000000000..2b90acfe0 --- /dev/null +++ b/.github/workflows/multi-event.yml @@ -0,0 +1,21 @@ +name: "Multiple Event Checker" + +on: + push: + branches: + - main + - tryout + + pull_request: + branches: + - main + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: "Printing" + run: + echo "HelloWorld!" + echo "Actor $GITHUB_ACTOR" + diff --git a/.github/workflows/multiple-events.yml b/.github/workflows/multiple-events.yml new file mode 100644 index 000000000..2b90acfe0 --- /dev/null +++ b/.github/workflows/multiple-events.yml @@ -0,0 +1,21 @@ +name: "Multiple Event Checker" + +on: + push: + branches: + - main + - tryout + + pull_request: + branches: + - main + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: "Printing" + run: + echo "HelloWorld!" + echo "Actor $GITHUB_ACTOR" + diff --git a/github-actions/Readme.me b/github-actions/Readme.me index 9be613aad..50c88a293 100644 --- a/github-actions/Readme.me +++ b/github-actions/Readme.me @@ -13,4 +13,5 @@ curl -X POST \ -H "Authorization: token {PAT} \ -d '{"event_type": "webhook", "client_payload": {"key": "value"} }' \ https://api.github.com/repos/{owner}/{repo}/dispatches -``` \ No newline at end of file +``` + diff --git a/.github/workflows/custom-action.yml b/github-actions/templates/custom-action.yml similarity index 51% rename from .github/workflows/custom-action.yml rename to github-actions/templates/custom-action.yml index 7a87b53f1..f5a2dc6c7 100644 --- a/.github/workflows/custom-action.yml +++ b/github-actions/templates/custom-action.yml @@ -12,4 +12,16 @@ jobs: name: 'Brown' # Use the output from the `hello` step - name: Get the Output - run: echo "The time was ${{ steps.hello.outputs.greeting }}" \ No newline at end of file + run: echo "The time was ${{ steps.hello.outputs.greeting }}" + + omars-job: + runs-on: ubuntu-latest + name: Omar is trying random things + steps: + - name: Say good bye lol + id: GoodBye + uses: omenking/barsoom@0.0.6 + with: + name: Omar + - name: Print lol + run: echo "The time leaving is ${{ steps.GoodBye.outputs.greeting }}" diff --git a/github-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..086fdc5c1 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -1,6 +1,6 @@ name: Greetings -on: [pull_request_target, issues] +on: [pull_request_target, issues, push] jobs: greeting: @@ -9,7 +9,6 @@ jobs: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }}