Skip to content

Commit

Permalink
Added job to update major branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Feb 10, 2023
1 parent f5da4c3 commit eea5578
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ jobs:
echo "Artifacts not found on maven central. Sleeping 30 seconds, retrying afterwards"
sleep 30s
done

update_major_branch:
name: "Update Major Branch"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
#TODO: Use apmmachine + setup authorization (SSH?)
- run: .ci/release/update_major_branch.sh ${{ inputs.version }}
- name: Compute major.x branch
id: get_dotx_branch
run: echo "dotx_branch=$(echo '${{ inputs.version }}' | sed -E 's/\..+/.x/')" >> $GITHUB_OUTPUT
- run: git push -f origin ${{ steps.get_dotx_branch.outputs.dotx_branch }}

update_cloudfoundry:
name: "Update Cloudfoundry"
Expand Down Expand Up @@ -119,6 +134,8 @@ jobs:
publish_aws_lambda:
name: "Publish AWS Lambda"
runs-on: ubuntu-latest
#TODO: disabled for now
if: false
outputs:
arn_content: ${{ steps.arn_output.outputs.arn_content }}
steps:
Expand Down Expand Up @@ -148,6 +165,8 @@ jobs:

create_github_release:
name: "Create GitHub Release"
#TODO: disabled for now
if: false
needs:
- publish_aws_lambda
runs-on: ubuntu-latest
Expand Down

0 comments on commit eea5578

Please sign in to comment.