Skip to content

Commit

Permalink
Try to checkout code with PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanNagar committed Apr 6, 2021
1 parent 6d22cdb commit ae85ed8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
key: ${{ runner.os }}-maven-node-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-node-
- name: Install npm packages
run: npm --prefix scripts/ install

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/perform-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.MAVEN_RELEASE_GH_PAT }}

- name: Set up Maven Central configuration
uses: actions/setup-java@v2
Expand All @@ -31,7 +33,15 @@ jobs:
- name: Configure Git User
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions"
git config user.name "Github Actions"
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Invoke Maven Release Plugin
run: mvn release:prepare release:perform -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
Expand Down

0 comments on commit ae85ed8

Please sign in to comment.