Fix normalized version references.

This commit is contained in:
/dev/urandom 2020-10-27 23:57:35 +01:00
parent 5b16d1245e
commit ff5afca7b9
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -35,19 +35,19 @@ jobs:
gpg-private-key: ${{ secrets.XLABS_CI_GPG_PRIVATE_KEY }} gpg-private-key: ${{ secrets.XLABS_CI_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.XLABS_CI_GPG_PASSPHRASE }} passphrase: ${{ secrets.XLABS_CI_GPG_PASSPHRASE }}
- name: Create branch release/${{ steps.normalize-version.outputs.version }} - name: Create branch release/${{ steps.normalize_version.outputs.version }}
run: git checkout -b "release/${{ steps.normalize-version.outputs.version }}" run: git checkout -b "release/${{ steps.normalize_version.outputs.version }}"
- name: Rename Unreleased section in changelog to ${{ steps.normalize-version.outputs.version }} - name: Rename Unreleased section in changelog to ${{ steps.normalize_version.outputs.version }}
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0 uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
with: with:
version: ${{ steps.normalize-version.outputs.version }} version: ${{ steps.normalize_version.outputs.version }}
- name: Commit changelog - name: Commit changelog
id: make-commit id: make-commit
run: | run: |
git add CHANGELOG.md git add CHANGELOG.md
git commit -m "Prepare release ${{ steps.normalize-version.outputs.version }}" git commit -m "Prepare release ${{ steps.normalize_version.outputs.version }}"
echo "::set-output name=commit::$(git rev-parse HEAD)" echo "::set-output name=commit::$(git rev-parse HEAD)"
@ -56,7 +56,7 @@ jobs:
uses: mindsers/changelog-reader-action@v2 uses: mindsers/changelog-reader-action@v2
with: with:
validation_depth: 10 validation_depth: 10
version: ${{ steps.normalize-version.outputs.version }} version: ${{ steps.normalize_version.outputs.version }}
path: ./CHANGELOG.md path: ./CHANGELOG.md
- name: Create Pull Request - name: Create Pull Request
@ -65,17 +65,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
delete-branch: true delete-branch: true
branch: "release/${{ steps.normalize-version.outputs.version }}" branch: "release/${{ steps.normalize_version.outputs.version }}"
body: | body: |
This Pull Request is for the release of IW6x ${{ steps.normalize-version.outputs.version }} and was [automatically created by a workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) triggered by @${{ github.actor }}. This Pull Request is for the release of IW6x ${{ steps.normalize_version.outputs.version }} and was [automatically created by a workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) triggered by @${{ github.actor }}.
Commit ${{ steps.make-commit.outputs.commit }} includes an update to the changelog to list the new version with its changes. Commit ${{ steps.make-commit.outputs.commit }} includes an update to the changelog to list the new version with its changes.
# What happens when this PR gets merged? # What happens when this PR gets merged?
After merging this PR, another workflow will create a new tag `${{ steps.normalize-version.outputs.version }}` on the `master` branch and the version will officially be {{ steps.changelog_reader.outputs.status }} via an actual GitHub release. A final build will be triggered and all binaries and assets will be attached to the GitHub release. After merging this PR, another workflow will create a new tag `${{ steps.normalize_version.outputs.version }}` on the `master` branch and the version will officially be {{ steps.changelog_reader.outputs.status }} via an actual GitHub release. A final build will be triggered and all binaries and assets will be attached to the GitHub release.
# Changelog for ${{ steps.normalize-version.outputs.version }} # Changelog for ${{ steps.normalize_version.outputs.version }}
These changes will be included in the release: These changes will be included in the release: