mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-22 18:31:56 +00:00
Another attempt to fix publish workflow
This commit is contained in:
8
.github/workflows/tagging.yml
vendored
8
.github/workflows/tagging.yml
vendored
@@ -33,16 +33,16 @@ jobs:
|
|||||||
echo "TAG_EXISTS=true" >> $GITHUB_ENV
|
echo "TAG_EXISTS=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "TAG_EXISTS=false" >> $GITHUB_ENV
|
echo "TAG_EXISTS=false" >> $GITHUB_ENV
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create and Push Git Tag
|
- name: Create and Push Git Tag
|
||||||
if: env.TAG_EXISTS == 'false'
|
if: env.TAG_EXISTS == 'false'
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ fromJson(steps.info.outputs.object).package.version }}
|
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git tag "$VERSION"
|
git tag "${{ env.VERSION }}"
|
||||||
git push origin "$VERSION"
|
git push origin "${{ env.VERSION }}"
|
||||||
|
|
||||||
- name: Trigger Release Workflow
|
- name: Trigger Release Workflow
|
||||||
if: env.TAG_EXISTS == 'false'
|
if: env.TAG_EXISTS == 'false'
|
||||||
@@ -54,5 +54,5 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
workflow_id: 'CI.yml',
|
workflow_id: 'CI.yml',
|
||||||
ref: 'main'
|
ref: '${{ env.VERSION }}' // <-- This is the key change!
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "read_aconity_layers"
|
name = "read_aconity_layers"
|
||||||
version = "0.4.7+2"
|
version = "0.4.8+3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|||||||
Reference in New Issue
Block a user