-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from ASFHyP3/develop
0.0.9
- Loading branch information
Showing
10 changed files
with
32 additions
and
83 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# These owners will be requested for review when someone opens a pull request. | ||
* @ASFHyP3/platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Changelog updated? | ||
|
||
on: | ||
pull_request: | ||
types: | ||
|
@@ -9,16 +10,9 @@ on: | |
branches: | ||
- main | ||
- develop | ||
jobs: | ||
changelog-udated: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Changelog check | ||
uses: Zomzog/[email protected] | ||
with: | ||
fileName: CHANGELOG.md | ||
noChangelogLabel: bumpless | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
call-changelog-check-workflow: | ||
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@main | ||
secrets: | ||
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,8 @@ env: | |
EVENT_MANAGER_ACCOUNT_IDS: ${{ secrets.EVENT_MANAGER_ACCOUNT_IDS }} | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -72,42 +70,9 @@ jobs: | |
HyP3URL="${HYP3_URL}" \ | ||
EventManagerAccountIds="${EVENT_MANAGER_ACCOUNT_IDS}" | ||
- name: Get associated PR | ||
if: github.ref == 'refs/heads/main' | ||
uses: helaili/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} | ||
with: | ||
query: .github/queries/asssociated-pr.query.yml | ||
outputFile: pr.json | ||
owner: ASFHyP3 | ||
name: hyp3-event-monitoring | ||
sha: ${{ github.sha }} | ||
|
||
- name: Get PR labels | ||
if: github.ref == 'refs/heads/main' | ||
uses: helaili/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} | ||
with: | ||
query: .github/queries/pr-labels.query.yml | ||
outputFile: labels.json | ||
owner: ASFHyP3 | ||
name: hyp3-event-monitoring | ||
|
||
- name: Tag version | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
python -m pip install bump2version | ||
git fetch origin +refs/tags/*:refs/tags/* | ||
git config user.email "[email protected]" | ||
git config user.name "tools-bot" | ||
LABEL_QUERY='.data.repository.pullRequest.labels.nodes[].name' | ||
SELECT='select(. == "major" or . == "minor" or . == "patch")' | ||
BUMP_PART=$(jq --raw-output "${LABEL_QUERY} | ${SELECT}" labels.json | sort | head -1) | ||
PR_QUERY='.data.repository.commit.associatedPullRequests.edges[0].node.title' | ||
TAG_MSG=$(jq --raw-output "${PR_QUERY}" pr.json) | ||
bump2version --current-version $(git describe --abbrev=0) \ | ||
--tag --tag-message "${TAG_MSG}" "${BUMP_PART}" | ||
git push --tags | ||
echo "Tagged version $(git describe --abbrev=0) and pushed back to repo" | ||
call-bump-version-workflow: | ||
if: github.ref == 'refs/heads/main' | ||
needs: deploy | ||
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@main | ||
secrets: | ||
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ Parameters: | |
|
||
EDLPassword: | ||
Type: String | ||
NoEcho: true | ||
|
||
EventManagerAccountIds: | ||
Type: CommaDelimitedList | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ Parameters: | |
|
||
EDLPassword: | ||
Type: String | ||
NoEcho: true | ||
|
||
Resources: | ||
Role: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ Parameters: | |
|
||
EDLPassword: | ||
Type: String | ||
NoEcho: true | ||
|
||
Resources: | ||
Role: | ||
|