Skip to content

Commit

Permalink
TEST create tag manually
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Jul 23, 2024
1 parent e85d389 commit 35f5d2c
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/release-tech-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Initialize mandatory git config
run: |
git config user.name "eclipse-edc-bot"
git config user.email "[email protected]"
# create tag on the current branch using GitHub's own API
- name: Create tag on current branch (main)
uses: actions/github-script@v6
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/v${{ env.EDC_VERSION }}',
sha: context.sha
})
run: |
git tag v${{ env.EDC_VERSION }}
# create merge commit main -> releases encoding the version in the commit message
- name: Merge main -> releases
uses: everlytic/[email protected]
with:
github_token: ${{ github.token }}
source_ref: ${{ github.ref }}
target_branch: 'releases'
commit_message_template: 'Merge commit for release of version v${{ env.EDC_VERSION }}'
run: |
git fetch origin releases --unshallow
git checkout --track origin/releases
git merge main -m "Merge commit for release of version v${{ env.EDC_VERSION }}"
git push origin releases
outputs:
edc-version: ${{ env.EDC_VERSION }}
Expand Down

0 comments on commit 35f5d2c

Please sign in to comment.