Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
jo2 committed Feb 21, 2022
1 parent bcfe1a3 commit 02929f7
Show file tree
Hide file tree
Showing 4 changed files with 394 additions and 245 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/validate-blogpost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
165 changes: 0 additions & 165 deletions _posts/2021-06-24-example.md

This file was deleted.

Loading

0 comments on commit 02929f7

Please sign in to comment.