Skip to content

Commit

Permalink
Add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison committed Mar 27, 2023
1 parent 5c83fea commit 9054098
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/discussion-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
organization: 'shield-wall'
repository: 'myprofile'
# discussionId: ${{inputs.php_versions}}
discussionId: ${{inputs.discussionId}}
body: ${{inputs.body}}

40 changes: 35 additions & 5 deletions .github/workflows/resume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,42 @@ jobs:
CLOUDFLARE_ACCOUNT_ID: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

discussion-comment-final:
discussion-comment-success:
uses: shield-wall/myprofile/.github/workflows/discussion-comment.yaml@master
if: github.event_name == 'discussion'
# if: github.event_name == 'discussion'
if: needs.resume.result == 'success'
needs: resume
with:
discussionId: ${{github.event.discussion.number}}
# discussionId: ${{github.event.discussion.number}}
discussionId: 723
body: |
Your resume was processed with success :tada: :tada:
Resume link: https://bucket.myprofile.pro/users/${{github.actor}}/resume.pdf
:white_check_mark: Your resume was generated with success :tada: :tada:, you can access using the link bellow.
**:page_with_curl: https://bucket.myprofile.pro/users/${{github.actor}}/resume.pdf**
discussion-comment-failure:
uses: shield-wall/myprofile/.github/workflows/discussion-comment.yaml@master
# if: github.event_name == 'discussion'
if: always() && needs.resume.result == 'failure'
needs: resume
with:
# discussionId: ${{github.event.discussion.number}}
discussionId: 723
body: |
:x: :bangbang: We couldn't generate your resume :disappointed_relieved: , we found out this issue related with your **yaml syntax**.
Please fix the **issue** bellow and after that **edit your discussion's description** to try again :arrows_clockwise: :wink:
:point_down: :point_down:
```bash
/home/runner/work/myprofile/myprofile/data/data.yaml
14:20 error bad indentation of a sequence entry in "/home/runner/work/myprofile/myprofile/data/data.yaml" (15:21)
12 | children:
13 | - content: |
14 | B.Sc Cyber Security under ...
15 | Particularly experienced in Web ...
--------------------------^
[16](https://github.com/shield-wall/myprofile/actions/runs/4531597047/jobs/7981936724#step:6:17) |
[17](https://github.com/shield-wall/myprofile/actions/runs/4531597047/jobs/7981936724#step:6:18) | #[experience section] invalid-yaml
✖ 1 problem (1 error, 0 warnings)
```
2 changes: 1 addition & 1 deletion data/data.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ sectionTwo:
#[education section]
- title: Education
icon: education
children:
children:
- degree: Master of Arts
institution: Harvard
timePeriod: March 2012 - December 2013
Expand Down

0 comments on commit 9054098

Please sign in to comment.