Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
omf-packages-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
omf-packages-main
Commits
46901cb1
Commit
46901cb1
authored
Jul 03, 2022
by
Pablo Santiago Blum de Aguiar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workflows/check-dead-repos: Comment on PR
parent
4d13e8c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
.github/workflows/check-dead-repos.yml
.github/workflows/check-dead-repos.yml
+18
-0
No files found.
.github/workflows/check-dead-repos.yml
View file @
46901cb1
...
...
@@ -50,4 +50,22 @@ jobs:
rm packages/*
unzip packages.zip
-
name
:
Check dead repositories
id
:
check
run
:
fish .github/workflows/check-dead-repos.fish
-
name
:
Comment success on PR
if
:
${{ always() && (github.event.workflow_run.event != 'pull_request' &&
github.event.workflow_run.conclusion != 'success') }}
uses
:
actions/github-script@v3
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
script
:
|
var fs = require('fs');
var issue_number = Number(fs.readFileSync('.pr_number'));
await github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue_number,
body: '${{ steps.check.conclusion }}' == 'success' ?
'✅ Everything looks OK! [Workflow ran successfully](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).' :
'🔴 Check for dead repositories failed! [Workflow failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).'
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment