Skip to content

Commit

Permalink
Merge pull request #2185 from newrelic/release
Browse files Browse the repository at this point in the history
Pull in latest `release` changes
  • Loading branch information
aswanson-nr authored Jan 4, 2024
2 parents 9bb7dfd + c7880d3 commit e3975b8
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 105 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: "main"
ref: "release"
fetch-depth: 0

- name: Setup workspace
Expand All @@ -46,7 +46,7 @@ jobs:
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
branch: 'release',
required_status_checks: null,
restrictions: null,
enforce_admins: null,
Expand All @@ -60,8 +60,8 @@ jobs:
git config --local user.email "${{ env.THIRD_PARTY_GIT_AUTHOR_EMAIL }}"
git config --local user.name "${{ env.THIRD_PARTY_GIT_AUTHOR_NAME }}"
# main could have been modified since we checked out, so pull before committing
git pull --ff-only origin main
# release could have been modified since we checked out, so pull before committing
git pull --ff-only origin release
git add ./quickstarts/*
git diff-index --quiet HEAD ./quickstarts/* || { git commit -m 'chore: generate UUID(s) [skip ci]' && echo "commit=true" >> $GITHUB_ENV; }
Expand All @@ -80,18 +80,19 @@ jobs:
const result = await github.rest.repos.updateBranchProtection({
owner: context.repo.owner,
repo: context.repo.repo,
branch: 'main',
branch: 'release',
required_status_checks: {
strict: true,
contexts: [
'Validation / Image count and extension compliance',
'Validation / Ensure icons exist',
'Validation / Install plan ids exist',
'Validation / Validate data source ids',
'Validation / Data source ids exist',
'Validation / Install plan schema compliance',
'Validation / Data source schema compliance',
'Validation / Quickstart id are unique',
'Validation / Validate Quickstart Schema'
'Validation / Validate Quickstart Schema',
'Validation / Quickstart dashboard name is unique'
]
},
restrictions: {
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ jobs:
'Validation / Image count and extension compliance',
'Validation / Ensure icons exist',
'Validation / Install plan ids exist',
'Validation / Validate data source ids',
'Validation / Data source ids exist',
'Validation / Install plan schema compliance',
'Validation / Data source schema compliance',
'Validation / Quickstart id are unique',
'Validation / Validate Quickstart Schema'
'Validation / Validate Quickstart Schema',
'Validation / Quickstart dashboard name is unique'
]
},
restrictions: {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/submit-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Submit Gate
on:
pull_request:
branches:
- main
- release
types: [closed]

jobs:
Expand All @@ -23,4 +23,4 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v3
with:
path: pr_number_submit.txt
path: pr_number_submit.txt
2 changes: 1 addition & 1 deletion utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"cors": "^2.8.5",
"express": "^4.18.1",
"glob": "^7.2.3",
"graphql": "^16.5.0",
"graphql": "^16.8.1",
"graphql-markdown": "^6.0.0",
"jest": "^27.5.1",
"js-yaml": "^4.1.0",
Expand Down
Loading

0 comments on commit e3975b8

Please sign in to comment.