This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
394 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- name: Inject env | ||
uses: rlespinasse/[email protected] | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: git log | ||
|
@@ -31,18 +31,36 @@ jobs: | |
echo "::set-env name=BASE_COMMIT::$BASE_COMMIT" | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ github.event.pull_request.user.login }}/${{ env.GITHUB_REPOSITORY_NAME_PART }} | ||
ref: ${{ env.HEAD_COMMIT }} | ||
fetch-depth: 0 | ||
|
||
- run: | | ||
echo github.event.number = ${{ github.event.number }} | ||
echo github.event.pull_request.number = ${{ github.event.pull_request.number }} | ||
echo github.event.issue.number = ${{ github.event.issue.number }} | ||
- name: Create comment using REST API | ||
run: | | ||
curl --request POST \ | ||
--url https://api.github.com/repos/adessoSE/devblog/issues/${{ github.event.number }}/comments \ | ||
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | ||
--header 'content-type: application/json' \ | ||
--header 'accept: application/vnd.github.v3+json' \ | ||
--data '{"body": "This is a test to create an issue comment via API."}' \ | ||
--fail | ||
- name: Run Docker image | ||
run: docker run --env BASE_COMMIT='${{ env.BASE_COMMIT }}' --env HEAD_COMMIT='${{ env.HEAD_COMMIT }}' --env LOCAL_REPO_PATH=repo --env PR_NUMBER='${{ github.event.number }}' --env TOKEN=${{ secrets.GITHUB_TOKEN }} -v /home/runner/work/devblog/devblog:/repo jekyll2cms/blogpost-checker:1.0.12 | ||
run: | | ||
docker run \ | ||
--env BASE_COMMIT='${{ env.BASE_COMMIT }}' \ | ||
--env HEAD_COMMIT='${{ env.HEAD_COMMIT }}' \ | ||
--env LOCAL_REPO_PATH=repo \ | ||
--env PR_NUMBER='${{ github.event.number }}' \ | ||
--env TOKEN='${{ secrets.GITHUB_TOKEN }}' \ | ||
-v /home/runner/work/devblog/devblog:/repo \ | ||
jekyll2cms/blogpost-checker:1.0.12 | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.