Skip to content

Commit

Permalink
Oppdater github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Jan 9, 2024
1 parent fd286cb commit ddfcbd7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-deploy-bidrag-domene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
paths:
- "bidrag-domene/**"
pull_request:
types: [closed]

permissions:
contents: "read"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-deploy-bidrag-transport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
paths:
- "bidrag-transport/**"
pull_request:
types: [closed]

permissions:
contents: "read"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
release:
name: Release package
needs: build-artifact
if: github.base_ref == 'main'
if: github.base_ref == 'main' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/release_package.yml
with:
package-name: ${{inputs.package-name}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
export VERSION=${GIT_COMMIT_DATE}
echo "VERSION=${GIT_COMMIT_DATE}" >> $GITHUB_ENV
echo "Setting version $VERSION"
mvn --settings versions:set -DnewVersion="$VERSION" --pl ${{inputs.package-name}} --am
mvn --settings versions:commit --pl ${{inputs.package-name}} --am
mvn versions:set -DnewVersion="$VERSION" --pl ${{inputs.package-name}} --am
mvn versions:commit --pl ${{inputs.package-name}} --am
git tag -a "${VERSION}" -m "Version ${VERSION}"
git push origin "${VERSION}"
- name: Deploy to Github Package
Expand Down
2 changes: 1 addition & 1 deletion bidrag-transport/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# bidrag-tranport
Transportobjekter for team bidrag
test
test2

0 comments on commit ddfcbd7

Please sign in to comment.