Skip to content

Commit

Permalink
Revert "Refactored workflow using composite actions"
Browse files Browse the repository at this point in the history
This reverts commit 780cd79

Refer actions/runner#646
  • Loading branch information
rajivmb committed Aug 19, 2020
1 parent 780cd79 commit 2bf9ecd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/actions/delete-package-version/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Delete Package Version'
description: 'Delete a specific package version'
description: 'Delete aspecific package version'
inputs:
name:
description: 'Name of package to delete'
Expand Down
32 changes: 0 additions & 32 deletions .github/actions/perform-maven-deploy/action.yaml

This file was deleted.

25 changes: 20 additions & 5 deletions .github/workflows/scheduled_purge_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,24 @@ jobs:
version: 1.0.0-SNAPSHOT
owner: ${{ github.repository_owner }}
token: ${{ secrets.WORKFLOW_TOKEN }}
- name: Perform Maven Deploy
uses: ./.github/actions/perform-maven-deploy
- name: Set up Java
uses: actions/setup-java@v1
with:
owner: ${{ github.repository_owner }}
token: ${{ secrets.WORKFLOW_TOKEN }}
internalRepoURL: "https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
java-version: 11
- name: Cache Maven artifacts
uses: actions/cache@v2
env:
cache-name: m2-cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Publish package
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
env:
INTERNAL_REPO_URL: "https://maven.pkg.github.com/rajivmb/p13i-mvn-repo"
#GITHUB_USERNAME: ${{ secrets.WORKFLOW_USERNAME }}
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}

0 comments on commit 2bf9ecd

Please sign in to comment.