Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactor CLI of Flank-scripts #1574

Merged
merged 5 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/create_new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "./flank-scripts/bash" >> $GITHUB_PATH
- name: Set next release tag variable
run: |
TAG=$(flankScripts ci nextReleaseTag --token=${{ secrets.GITHUB_TOKEN }})
TAG=$(flankScripts release next_tag --token=${{ secrets.GITHUB_TOKEN }})
echo "NEXT_RELEASE_TAG=$(echo $TAG)" >> $GITHUB_ENV

- name: Push tag
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/full_suite_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:

- name: Process IT results
run: |
flankScripts integration processResults \
flankScripts integration_tests process_results \
--result=${{ needs.run-it-full-suite.outputs.job_status }} \
--url=${{ needs.run-it-full-suite.outputs.build-scan-url }} \
--github-token=${{ secrets.GITHUB_TOKEN }} \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
echo "./flank-scripts/bash" >> $GITHUB_PATH

- name: Copy properties
run: flankScripts pullRequest copyProperties --github-token=${{ secrets.GITHUB_TOKEN }} --zenhub-token=${{ secrets.ZENHUB_API_KEY }} --pr-number=${{ github.event.number }}
run: flankScripts github copy_issue_properties --github-token=${{ secrets.GITHUB_TOKEN }} --zenhub-token=${{ secrets.ZENHUB_API_KEY }} --pr-number=${{ github.event.number }}
check_title:
runs-on: macos-latest
steps:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
jfrog bt config --user ${{ secrets.JFROG_USER }} --key ${{ secrets.JFROG_API_KEY }} --licenses Apache-2.0

- name: Delete old snapshot
run: flankScripts release jFrogDelete --version=$MVN_VERSION
run: flankScripts release delete_snapshot --version=$MVN_VERSION

- name: Gradle Build Flank
uses: eskatos/gradle-command-action@v1
Expand Down Expand Up @@ -84,22 +84,22 @@ jobs:
- name: Delete old release
run: |
hub version
flankScripts release deleteOldRelease --git-tag=$RELEASE_TAG
flankScripts github delete_release --git-tag=$RELEASE_TAG

- name: Delete old tag
if: ${{ env.RELEASE_TAG == 'flank_snapshot' }}
run: flankScripts release deleteOldTag --git-tag=$RELEASE_TAG --username=$GITHUB_ACTOR --token=${{ secrets.GITHUB_TOKEN }}
run: flankScripts github delete_old_tag --git-tag=$RELEASE_TAG --username=$GITHUB_ACTOR --token=${{ secrets.GITHUB_TOKEN }}

- name: Release snapshot
if: ${{ env.RELEASE_TAG == 'flank_snapshot' }}
run: flankScripts release releaseFlank --input-file=./test_runner/build/libs/flank.jar --git-tag=$RELEASE_TAG --commit-hash=$GIT_SHORT_HASH --snapshot
run: flankScripts github make_release --input-file=./test_runner/build/libs/flank.jar --git-tag=$RELEASE_TAG --commit-hash=$GIT_SHORT_HASH --snapshot

- name: Release stable
if: startsWith(github.ref, 'refs/tags/v')
run: flankScripts release releaseFlank --input-file=./test_runner/build/libs/flank.jar --git-tag=$RELEASE_TAG --token=${{ secrets.GITHUB_TOKEN }}
run: flankScripts github make_release --input-file=./test_runner/build/libs/flank.jar --git-tag=$RELEASE_TAG --token=${{ secrets.GITHUB_TOKEN }}

- name: Sync bintray to maven central
run: flankScripts release jFrogSync --maven-tag=$MVN_VERSION
run: flankScripts release sync_with_maven_central --maven-tag=$MVN_VERSION

- name: Gradle Upload to GitHub packages
uses: eskatos/gradle-command-action@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_notes_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:

- name: Set next release tag variable
run: |
TAG=$(flankScripts ci nextReleaseTag --token=${{ secrets.GITHUB_TOKEN }})
TAG=$(flankScripts release next_tag --token=${{ secrets.GITHUB_TOKEN }})
echo "NEXT_RELEASE_TAG=$(echo $TAG)" >> $GITHUB_ENV

- name: Append release note
run: |
flankScripts ci generateReleaseNotes --token=${{ secrets.GITHUB_TOKEN }}
flankScripts release generate_release_notes --token=${{ secrets.GITHUB_TOKEN }}

- uses: tibdex/github-app-token@v1
id: generate-token
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_dependencies_and_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
- name: Update Java Client
run: |
pip install google-apis-client-generator
flankScripts shell firebase updateApiJson
flankScripts shell firebase generateJavaClient
flankScripts firebase update_api
flankScripts firebase generate_client

- name: Commit files and create Pull request
id: pr
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:

- name: Run SDK check
run: |
flankScripts shell firebase checkForSdkUpdate \
flankScripts firebase check_for_sdk_updates \
--github-token=${{ secrets.GITHUB_TOKEN }} \
--zenhub-token=${{ secrets.ZENHUB_API_KEY }}

Expand Down
Loading