Skip to content

Commit

Permalink
new script action versions and comment on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
psifertex committed Jan 6, 2024
1 parent 449c47f commit 08ea74a
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/validatenewrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: pip install -r requirements.txt
Expand All @@ -18,9 +18,25 @@ jobs:
env:
ISSUE_CONTENT: ${{ github.event.issue.body }}

- name: Comment
if: failure()
uses: actions/github-script@v7
with:
#github-token: ${{secrets.M_GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Sorry, this repository does not appear to have a valid plugin.json.
Please ensure it is valid JSON and that you have created an actual release.
`
})
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
if: failure()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: 'failure'
Expand Down

0 comments on commit 08ea74a

Please sign in to comment.