Skip to content

Commit 2bf9ecd

Browse files
committed
Revert "Refactored workflow using composite actions"
This reverts commit 780cd79 Refer actions/runner#646
1 parent 780cd79 commit 2bf9ecd

File tree

3 files changed

+21
-38
lines changed

3 files changed

+21
-38
lines changed

.github/actions/delete-package-version/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Delete Package Version'
2-
description: 'Delete a specific package version'
2+
description: 'Delete aspecific package version'
33
inputs:
44
name:
55
description: 'Name of package to delete'

.github/actions/perform-maven-deploy/action.yaml

-32
This file was deleted.

.github/workflows/scheduled_purge_and_deploy.yaml

+20-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,24 @@ jobs:
1919
version: 1.0.0-SNAPSHOT
2020
owner: ${{ github.repository_owner }}
2121
token: ${{ secrets.WORKFLOW_TOKEN }}
22-
- name: Perform Maven Deploy
23-
uses: ./.github/actions/perform-maven-deploy
22+
- name: Set up Java
23+
uses: actions/setup-java@v1
2424
with:
25-
owner: ${{ github.repository_owner }}
26-
token: ${{ secrets.WORKFLOW_TOKEN }}
27-
internalRepoURL: "https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
25+
java-version: 11
26+
- name: Cache Maven artifacts
27+
uses: actions/cache@v2
28+
env:
29+
cache-name: m2-cache
30+
with:
31+
path: ~/.m2/repository
32+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: |
34+
${{ runner.os }}-build-${{ env.cache-name }}-
35+
${{ runner.os }}-build-
36+
${{ runner.os }}-
37+
- name: Publish package
38+
run: mvn deploy -s settings.xml -Drepo.id=internal.repo -Drepo.username=${{ github.repository_owner }} -Drepo.token=$WORKFLOW_TOKEN -Dinternal.repo.url=$INTERNAL_REPO_URL -DaltDeploymentRepository=internal.repo::default::$INTERNAL_REPO_URL
39+
env:
40+
INTERNAL_REPO_URL: "https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
41+
#GITHUB_USERNAME: ${{ secrets.WORKFLOW_USERNAME }}
42+
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}

0 commit comments

Comments
 (0)