Skip to content

Commit

Permalink
Merge branch 'git-commit-push-action-12567092338-macos-full-remote' i…
Browse files Browse the repository at this point in the history
…nto macos
  • Loading branch information
GuillaumeFalourd authored and GuillaumeFalourd committed Jan 1, 2025
2 parents 2b98e78 + 81037c0 commit f737810
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/74-n8n-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 74 - N8N Integration

on:
workflow_dispatch:
inputs:
name:
description: "Name"
required: false
default: "John Doe"
email:
description: "Email"
required: false
default: "[email protected]"
message:
description: "Message"
required: false
default: "Hello, this is a test message!"

jobs:
n8n-integration:
runs-on: ubuntu-latest
steps:
- name: Send POST request to N8N workflow using cURL to open an issue on this repository
env:
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
echo "Workflow URL: $WORKFLOW_URL"
curl -X POST https://${{secrets.N8N_ACCOUNT}}.app.n8n.cloud/webhook/${{ secrets.N8N_PATH}} \
-H "Content-Type: application/json" \
-d '{
"name": "${{ inputs.name }}",
"email": "${{ inputs.email }}",
"message": "${{ inputs.message }}",
"workflow_url": "${{ env.WORKFLOW_URL }}"
}' \
--fail --show-error
if [ $? -ne 0 ]; then
echo "Error: cURL request failed."
exit 1
fi
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,8 @@ This workflow illustrates how to start a workflow by commenting using a specific

[![73 - Check if file exists](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/73-if-file-exists.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/73-if-file-exists.yml) - AS EXPECTED

This workflow illustrates how to check if a file exists in a workflow after a failure, to perform some custom operations.
This workflow illustrates how to check if a file exists in a workflow after a failure, to perform some custom operations.

[![74 - n8N integration](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/74-n8n-integration.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/74-n8n-integration.yml) - AS EXPECTED

This workflow illustrates how to integrate github actions with a n8n workflow automation (http://n8n.io) using a webhook.
2 changes: 1 addition & 1 deletion backup/checkout-workflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon Dec 30 01:43:00 UTC 2024
Tue Dec 31 01:39:45 UTC 2024
2 changes: 1 addition & 1 deletion backup/pull-request-workflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fri Dec 27 06:29:53 UTC 2024
Mon Dec 30 06:31:04 UTC 2024
2 changes: 1 addition & 1 deletion macos_report_full_remote.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Tue Dec 31 04:17:06 UTC 2024
Wed Jan 1 04:17:22 UTC 2025

0 comments on commit f737810

Please sign in to comment.