Skip to content

Commit

Permalink
Merge pull request #705 from newrelic/kav/updateNodeAndActions
Browse files Browse the repository at this point in the history
feat: update versions
  • Loading branch information
Kav91 authored Sep 16, 2024
2 parents a3b1e23 + 2c1a40a commit 8657ffa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/catalog-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- 'apps/**'
- "apps/**"

jobs:
checkout-and-build-pr:
Expand Down Expand Up @@ -53,16 +53,16 @@ jobs:
echo ${{ env.SUBMODULE_NAME }} > submodule_name.txt
- name: Upload SUBMODULE_NAME artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: submodule_name
path: ./submodule_name.txt

- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install Dependencies
if: env.SUBMODULE_NAME != ''
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install Dependencies
if: env.SUBMODULE_NAME != ''
Expand Down Expand Up @@ -172,9 +172,9 @@ jobs:
- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install Dependencies
if: env.SUBMODULE_NAME != ''
Expand Down Expand Up @@ -226,9 +226,9 @@ jobs:
- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

# Custom action to check for OSS files
- name: compile files-present-action
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-for-deprecations.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Check for Platform Deprecations in Apps

on:
on:
workflow_dispatch:
schedule:
- cron: '0 0 20 * *'
- cron: "0 0 20 * *"

jobs:
check-for-deprecations:
Expand All @@ -16,8 +16,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 20

- name: Install dependencies
run: cd utils && yarn install

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
paths:
- 'apps/**'
- "apps/**"
env:
THIRD_PARTY_GIT_AUTHOR_EMAIL: opensource+bot@newrelic.com
THIRD_PARTY_GIT_AUTHOR_NAME: nr-opensource-bot
Expand Down Expand Up @@ -56,16 +56,16 @@ jobs:
echo ${{ env.SUBMODULE_NAME }} > submodule_name.txt
- name: Upload SUBMODULE_NAME artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: submodule_name
path: ./submodule_name.txt

- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install Dependencies
if: env.SUBMODULE_NAME != ''
Expand Down Expand Up @@ -131,9 +131,9 @@ jobs:
- name: Setup node
if: env.SUBMODULE_NAME != ''
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: compile map-global-uuid
if: env.SUBMODULE_NAME != ''
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Nerdpack
if: env.SUBMODULE_NAME != ''
env:
Expand Down Expand Up @@ -225,14 +225,14 @@ jobs:
# Attempt to update the EU tag - retry logic implemented because sometimes it is not ready yet
# Set the maximum number of attempts
max_attempts=30
# Counter for the attempts
attempt=1
while [ $attempt -le $max_attempts ]; do
# Run the command and capture its output
output=$(nr1 nerdpack:tag --profile=nr1-apps-eu 2>&1 || true)
# Check if the output contains the keyword "Error"
if [[ "$output" == *"Error"* ]]; then
# The command failed
Expand All @@ -244,13 +244,13 @@ jobs:
break
fi
done
# Check if all attempts failed
if [ $attempt -gt $max_attempts ]; then
echo "EU tagging failed after $max_attempts attempts"
exit 1
fi
echo "EU tagging succeeded after $attempt attempts"
# submit catalog for EU
Expand Down

0 comments on commit 8657ffa

Please sign in to comment.