diff --git a/.github/workflows/101.yml b/.github/workflows/101.yml index 93570dc..034889f 100644 --- a/.github/workflows/101.yml +++ b/.github/workflows/101.yml @@ -1,4 +1,4 @@ -name: First Workflow test test +name: First Workflow test test test on: [push] diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index a23f43d..e122105 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -6,6 +6,7 @@ on: version: description: 'The version you want to release.' required: true + repository: develop jobs: draft-new-release: diff --git a/.github/workflows/release.yml b/.github/workflows/publish-release.yml similarity index 98% rename from .github/workflows/release.yml rename to .github/workflows/publish-release.yml index 8378976..b4ad50f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/publish-release.yml @@ -1,4 +1,4 @@ -name: "Publish new release" +name: "Publish new release test" # Reference for helpers below # https://github.com/actions/github-script # https://octokit.github.io/rest.js/v19 @@ -23,12 +23,15 @@ jobs: run: | BRANCH_NAME="${{ github.event.pull_request.head.ref }}" VERSION=${BRANCH_NAME#release/} + echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV + - name: Extract version from branch name (for hotfix branches) if: startsWith(github.event.pull_request.head.ref, 'hotfix/') run: | BRANCH_NAME="${{ github.event.pull_request.head.ref }}" VERSION=${BRANCH_NAME#hotfix/} + echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV - name: "Create release"