Update GitHub Actions to target version 3.0.5
The GitHub Actions workflow has been updated to focus on version 3.0.5 for both commit verification and version naming. The actions will now fetch, verify, and build with the new target version, ensuring our continuous integration remains aligned with the newest release.
This commit is contained in:
parent
ce5af36d53
commit
cf7c7c0a40
8
.github/workflows/packages.yml
vendored
8
.github/workflows/packages.yml
vendored
|
|
@ -3,7 +3,7 @@ on:
|
|||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- v3.0.4
|
||||
- v3.0.5
|
||||
release:
|
||||
types: [ prereleased, published ]
|
||||
env:
|
||||
|
|
@ -18,10 +18,10 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Verify commit exists in origin/v3.0.4
|
||||
- name: Verify commit exists in origin/v3.0.5
|
||||
run: |
|
||||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
|
||||
git branch --remote --contains | grep origin/v3.0.4
|
||||
git branch --remote --contains | grep origin/v3.0.5
|
||||
- name: Set VERSION variable
|
||||
run: |
|
||||
if [[ "${{ github.ref }}" == refs/tags/* && "${{ github.event_name }}" == "release" && "${{ github.event.action }}" == "published" ]]; then
|
||||
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
TAG_NAME=${TAG_NAME#refs/tags/} # remove the refs/tags/ prefix
|
||||
echo "VERSION=${TAG_NAME}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "VERSION=3.0.4-preview.${{github.run_number}}" >> $GITHUB_ENV
|
||||
echo "VERSION=3.0.5-preview.${{github.run_number}}" >> $GITHUB_ENV
|
||||
fi
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release /p:Version=${VERSION}
|
||||
|
|
|
|||
Loading…
Reference in a new issue