Skip to content

Commit

Permalink
Updated 'update-label-directory.yml' and 'update-label-directory.js'
Browse files Browse the repository at this point in the history
  • Loading branch information
theogguu committed Oct 19, 2024
1 parent 1f1f0ae commit 8746441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-label-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
env:
label_edits: ${{ steps.update-label-directory.outputs.result }}
run: |
curl -X POST "https://script.google.com/macros/s/AKfycbw_rM8kwRea_iT6NbP1k5c7nJl5qg-5IwiTPXUyd7V2Oe_TN_TbapdpcVtLPHieKdUt/exec" \
-H "Content-Type: application/json" \
-d "$label_edits"
curl -X POST "https://script.google.com/macros/s/AKfycbw_kmDVqQW5J8wXWl1BXvJzALU6k0XYpAc5XJ7inQSyq8_opUuNg4ToBzh3Gf4M5jhw/exec" \
-H "Content-Type: application/json" \
-d "$label_edits"
# Before next step, run `git pull` so that branch is current
- name: Pull latest changes from gh-pages
Expand Down
2 changes: 1 addition & 1 deletion github-actions/utils/update-label-directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main({ g, c }) {
// If label 'edited' but changes do not include 'name', label directory is not updated and workflow exits
if (labelAction === 'edited' && !context.payload.changes.name) {
console.log(`${breakLine}\n`);
console.log(`What was changed:`);
console.log(`${labelName} label changed:`);
console.log(context.payload.changes);
console.log(`\n${breakLine}\n`);
labelAction = "no update";
Expand Down

0 comments on commit 8746441

Please sign in to comment.