Skip to content

Commit

Permalink
Trying fix hash 3
Browse files Browse the repository at this point in the history
  • Loading branch information
benchdoos committed Oct 22, 2023
1 parent a45953f commit 4490a1d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
WeblocOpenerCoreHash: WeblocOpenerCoreHashTest
WeblocOpenerHash: WeblocOpenerHashTest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand Down Expand Up @@ -56,14 +53,16 @@ jobs:
- name: Get commit hash for WeblocOpenerCore
id: weblocopenercore_hash
run: echo "WeblocOpenerCoreHash=$(git rev-parse HEAD) >> $GITHUB_OUTPUT"
run: echo "WEBLOCOPENERCORE_HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Build WeblocOpener
run: mvn -B clean package -P build-setup,build-deb,build-exe --file pom.xml

- name: Get commit hash for WeblocOpener
id: weblocopener_hash
run: echo "WeblocOpenerHash=$(git rev-parse HEAD) >> $GITHUB_OUTPUT"
run: |
echo "WEBLOCOPENER_HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo $GITHUB_OUTPUT
- name: Upload WeblocOpener.deb
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -102,21 +101,25 @@ jobs:
name: WeblocOpenerSetup.exe
path: ${{ github.workspace }}

- name: Watching
run: |
echo directories:
find . -type d -print
echo files:
find . -type f -print
# - name: Watching
# run: |
# echo directories:
# find . -type d -print
# echo files:
# find . -type f -print

- name: Echo GITHUB_OUTPUT
run: echo $GITHUB_OUTPUT

- name: Create Draft Release
run: |
echo current location: $PWD
ls -a
RELEASE_NAME=rc-${GITHUB_REF#refs/heads/}-build.$BUILD_ID
RELEASE_TAG=${GITHUB_REF#refs/heads/}-build.$BUILD_ID
WEBLOCOPENERCORE_HASH=${{needs.build.outputs.WeblocOpenerCoreHash}}
WEBLOCOPENER_HASH=${{needs.build.outputs.WeblocOpenerHash}}
WEBLOCOPENERCORE_HASH=${{needs.build.outputs.WEBLOCOPENERCORE_HASH}}
WEBLOCOPENER_HASH=${{needs.build.outputs.WEBLOCOPENER_HASH}}
echo Just from outputs: ${{needs.build.outputs.WEBLOCOPENERCORE_HASH}} | ${{needs.build.outputs.WEBLOCOPENER_HASH}}
echo WeblocOpenerCore hash: $WEBLOCOPENERCORE_HASH
echo WeblocOpener hash: $WEBLOCOPENER_HASH
echo Release name: $RELEASE_NAME
Expand Down

0 comments on commit 4490a1d

Please sign in to comment.