mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 03:55:41 -04:00
ci: update workflows
This commit is contained in:
13
.github/workflows/labels-create.yml
vendored
13
.github/workflows/labels-create.yml
vendored
@@ -167,7 +167,7 @@ jobs:
|
||||
github-token: ${{ secrets.ADMINSERV_TOKEN_CL }}
|
||||
script: |
|
||||
const labels = JSON.parse( process.env.LABELS_JSON );
|
||||
let count = Object.keys(labels).length;
|
||||
let result = Object.keys(labels).length;
|
||||
for ( const label of labels )
|
||||
{
|
||||
try
|
||||
@@ -194,9 +194,9 @@ jobs:
|
||||
}
|
||||
}
|
||||
|
||||
console.log("[Success]: Added" + count + " labels to repo");
|
||||
console.log("[Success]: Added " + result + " labels to repo");
|
||||
|
||||
return count
|
||||
return result
|
||||
|
||||
# #
|
||||
# Cleanup › Get Weekly Commits
|
||||
@@ -227,10 +227,11 @@ jobs:
|
||||
embed-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
embed-thumbnail-url: 'https://i.imgur.com/zDIzE8T.jpg'
|
||||
embed-description: |
|
||||
## 📦 Labels › Create ${{ job.status == 'success' && '✅' || '❌' }}
|
||||
## 🎫 Labels › Create ${{ job.status == 'success' && '✅' || '❌' }}
|
||||
|
||||
A **successful** workflow has been ran to generate labels for your repository.
|
||||
${{ steps.task_label_verify_existing.outputs.result }} labels have been added.
|
||||
|
||||
**${{ steps.task_label_verify_existing.outputs.result }}** labels have been added.
|
||||
|
||||
- Labels: `${{ steps.task_label_verify_existing.outputs.result }} created`
|
||||
- Workflow: `${{ github.workflow }} (#${{github.run_number}})`
|
||||
@@ -262,7 +263,7 @@ jobs:
|
||||
embed-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
embed-thumbnail-url: 'https://i.imgur.com/zDIzE8T.jpg'
|
||||
embed-description: |
|
||||
## 📦 Labels › Create ${{ job.status == 'success' && '✅' || '❌' }}
|
||||
## 🎫 Labels › Create ${{ job.status == 'success' && '✅' || '❌' }}
|
||||
|
||||
A **failed** attempt was made to run this workflow. No new labels have been added to your repository.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user