Skip to content

Commit

Permalink
Add secrets for tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
niveathika committed Jun 4, 2024
1 parent b6a2b3d commit 25ed658
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ jobs:
- name: Generate Codecov Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}z
4 changes: 3 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ jobs:
./gradlew test
- name: Generate Codecov Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}z
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ jobs:
- name: Publish Package
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }}
packageUser: ${{ secrets.USERNAME }}
packagePAT: ${{ secrets.TOKEN }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
publishUser: ${{ secrets.USERNAME }}
publishPAT: ${{ secrets.TOKEN }}
publishPAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew clean release -Prelease.useAutomaticVersion=true
./gradlew -Pversion=${VERSION} publish -x test -PpublishToCentral=true
- name: GitHub Release and Release Sync PR
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v$VERSION --title "module-niveathika-pluralize-v$VERSION"
gh pr create --base ${GITHUB_REF##*/} --title "[Automated] Sync ${GITHUB_REF##*/} after $VERSION release" --body "Sync ${GITHUB_REF##*/} after $VERSION release"

0 comments on commit 25ed658

Please sign in to comment.