Skip to content

Commit 705bcdc

Browse files
Fix additional failing workflows: roadmap-labels, publish-release-blog, contract-validation
- Updated roadmap-labels.yml: modern action versions, fixed console.log syntax, removed duplicate concurrency - Updated publish-release-blog.yml: modern action versions, fixed shell echo syntax - Updated contract-validation.yml: modern action versions - Fixed JavaScript template literals and shell redirection issues Progress: 3 of 12 failing workflows addressed
1 parent 6230ca5 commit 705bcdc

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/contract-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
pull-requests: write
5656
steps:
5757
- name: Checkout code
58-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
58+
uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 0
6161
- name: Setup Node.js
62-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
62+
uses: actions/setup-node@v4
6363
with:
6464
node-version: ${{ env.NODE_VERSION }}
6565
cache: npm

.github/workflows/publish-release-blog.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: ⬇️ Checkout main branch
11-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
11+
uses: actions/checkout@v4
1212
with:
1313
ref: main
1414
fetch-depth: 0
1515
- name: 🔧 Set up Node.js
16-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 18
1919
- name: ✏️ Generate blog post
@@ -30,22 +30,21 @@ jobs:
3030
echo "authors: [ali]" >> "$FILE"
3131
echo "tags: [release, changelog]" >> "$FILE"
3232
echo "---" >> "$FILE"
33-
echo ">> $FILE"
33+
echo "" >> "$FILE"
3434
echo "RAG Pipeline Utils v"${VERSION}" is now available on NPM!" >> "$FILE"
35-
echo ">> $FILE"
35+
echo "" >> "$FILE"
3636
echo "#### Highlights" >> "$FILE"
3737
echo "- 🚀 Auto-published blog from GitHub Release" >> "$FILE"
3838
echo "- 📦 Version bump: "${VERSION}"" >> "$FILE"
3939
echo "- 📘 See CHANGELOG.md for full details" >> "$FILE"
4040
shell: bash
4141
- name: 📋 Commit blog post
42-
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
42+
uses: stefanzweifel/git-auto-commit-action@v5
4343
with:
4444
commit_message: "docs(blog): add release post for ${{ github.ref_name }}"
4545
file_pattern: docs-site/blog/*.md
4646
timeout-minutes: 30
4747
concurrency:
48-
concurrency:
4948
group: ${{ github.workflow }}-${{ github.ref }}
5049
cancel-in-progress: true
5150
permissions:

.github/workflows/roadmap-labels.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: ⬇️ Checkout repository
12-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
12+
uses: actions/checkout@v4
1313
- name: 🟢 Setup Node.js
14-
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: 20
1717
- name: 📦 Install octokit
@@ -47,10 +47,10 @@ jobs:
4747
4848
for (const label of labels) {
4949
if (!existingNames.has(label.name)) {
50-
console.log("$($1)");
50+
console.log(`Creating label: ${label.name}`);
5151
await octokit.rest.issues.createLabel({ owner, repo, ...label });
5252
} else {
53-
console.log("$($1)");
53+
console.log(`Label exists: ${label.name}`);
5454
}
5555
}
5656
})().catch(err => {
@@ -61,7 +61,6 @@ jobs:
6161
shell: bash
6262
timeout-minutes: 30
6363
concurrency:
64-
concurrency:
6564
group: ${{ github.workflow }}-${{ github.ref }}
6665
cancel-in-progress: true
6766
permissions:

0 commit comments

Comments
 (0)