Skip to content

Commit

Permalink
Merge pull request #1614 from keizer619/slalpha4-patch
Browse files Browse the repository at this point in the history
Fix central token issue
  • Loading branch information
keizer619 authored Apr 22, 2021
2 parents 6cf7b1e + d1caba4 commit ed42ea7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew clean build --stacktrace --scan --console=plain --no-daemon --continue
- name: Archive Ballerina ZIP
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -69,4 +70,5 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew.bat clean build --stacktrace --scan --console=plain --no-daemon -x test
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew clean build --stacktrace --scan --console=plain --no-daemon --continue
- name: Build Ballerina Distribution Skip Tests
if: ${{ github.event.inputs.skipTests == 'true' }}
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew clean build --stacktrace --scan --console=plain --no-daemon --continue -x test
- name: Archive Ballerina ZIP
uses: actions/upload-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: |
./gradlew build release -Prelease.useAutomaticVersion=true -Pversion=${VERSION}
- name: Create release
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew clean build --stacktrace --scan --console=plain --no-daemon --continue -x :ballerina:testExamples

ubuntu-bbe-tests:
Expand All @@ -36,6 +37,7 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew clean :ballerina:testExamples --stacktrace --scan --console=plain --no-daemon --continue
windows-build-without-tests:
runs-on: windows-latest
Expand All @@ -50,4 +52,5 @@ jobs:
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_DEV_CENTRAL_ACCESS_TOKEN }}
run: ./gradlew.bat clean build --stacktrace --scan --console=plain --no-daemon --continue -x test
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void createSettingToml(Path dirPath) throws IOException {
*/
private static String getToken() {
// staging and dev both has the same access token
return new String(Base64.getDecoder().decode("OGM0Mzk4OTktYjNjMy0zOGZmLThkMjYtY2Q2MjlkNTY3OTFj"));
return System.getenv("devCentralToken");
}

/**
Expand Down

0 comments on commit ed42ea7

Please sign in to comment.