Added the action response.
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 36s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 36s
This commit is contained in:
parent
9365d681df
commit
6e53dbce14
@ -23,33 +23,6 @@ jobs:
|
|||||||
branch: update/pre-commit-hooks
|
branch: update/pre-commit-hooks
|
||||||
push_options: --force
|
push_options: --force
|
||||||
create_branch: true
|
create_branch: true
|
||||||
# - run: |
|
|
||||||
# curl -X 'POST' \
|
|
||||||
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
|
|
||||||
# -H 'accept: application/json' \
|
|
||||||
# -H 'authorization: Basic auth token' \
|
|
||||||
# -H 'Content-Type: application/json' \
|
|
||||||
# -d '{
|
|
||||||
# "base": "main",
|
|
||||||
# "body": "string",
|
|
||||||
# "head": "update/pre-commit-hooks",
|
|
||||||
# "title": "Some title"
|
|
||||||
# }'
|
|
||||||
# - name: Make a curl request
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# run: |
|
|
||||||
# curl -X 'POST' \
|
|
||||||
# 'https://git.horstenkamp.eu/api/v1/repos/Philipp/gitea-act-create-pr/pulls' \
|
|
||||||
# -H 'accept: application/json' \
|
|
||||||
# -H "Authorization: token ${GITHUB_TOKEN}" \
|
|
||||||
# -H 'Content-Type: application/json' \
|
|
||||||
# -d '{
|
|
||||||
# "base": "main",
|
|
||||||
# "body": "string",
|
|
||||||
# "head": "update/pre-commit-hooks",
|
|
||||||
# "title": "Some title"
|
|
||||||
# }'
|
|
||||||
- name: My PR action
|
- name: My PR action
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -16,7 +16,7 @@ inputs:
|
|||||||
body:
|
body:
|
||||||
description: Body of the pull request
|
description: Body of the pull request
|
||||||
required: false
|
required: false
|
||||||
default: Some default tile!
|
default: Some default body!
|
||||||
assignees:
|
assignees:
|
||||||
description: Comma-separated list of assignees for the pull request
|
description: Comma-separated list of assignees for the pull request
|
||||||
required: false
|
required: false
|
||||||
|
1
index.js
1
index.js
@ -62,6 +62,7 @@ async function getAndPostPullRequests() {
|
|||||||
|
|
||||||
const postResult = await postResponse.json().url;
|
const postResult = await postResponse.json().url;
|
||||||
core.info("POST request completed successfully.");
|
core.info("POST request completed successfully.");
|
||||||
|
core.info(`Created the post request under: ${postResult}`);
|
||||||
return postResult;
|
return postResult;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(`Action failed with error: ${error}`);
|
core.setFailed(`Action failed with error: ${error}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user