Skip to content

Commit

Permalink
Update UploadReleaseGithub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlatrifork committed Nov 27, 2023
1 parent 8b7c091 commit aa62155
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/UploadReleaseGithub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,14 @@ on:
- release.**

jobs:
job1:
runs-on: ubuntu-latest
outputs:
branchname: ${{ steps.step1.outputs.branchname }}
steps:
- uses: actions/checkout@v1
- id: step1
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw/origin\/}
echo "branch detected: $branch"
echo "branchname=$branch" >> $GITHUB_OUTPUT
build:
if: ${{ endsWith(needs.job1.outputs.branchname, 'main') == true }}
upload:
environment: build
env:
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_AUTH_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v1
- name: Set up Java
uses: actions/setup-java@v2
Expand Down

0 comments on commit aa62155

Please sign in to comment.