Skip to content

Commit

Permalink
ci fix;
Browse files Browse the repository at this point in the history
  • Loading branch information
iSplasher committed Jan 4, 2024
1 parent 347d2ab commit ab28683
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
shell: bash
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -34,6 +35,7 @@ jobs:
- name: Read manifest
working-directory: ${{ matrix.plugindir }}
run: |
echo "CWD=$(pwd)"
echo "PLUGIN_ID=$(yq '.Id' .\extension.yaml)" >> $GITHUB_ENV
echo "PLUGIN_NAME=$(yq '.Name' .\extension.yaml)" >> $GITHUB_ENV
echo "PLUGIN_VERSION=$(yq '.Version' .\extension.yaml)" >> $GITHUB_ENV
Expand Down Expand Up @@ -63,11 +65,14 @@ jobs:
git fetch --tags &> /dev/null
if git rev-parse ${{ env.TAG_NAME }} >/dev/null 2>&1; then
echo "Tag ${{ env.TAG_NAME }} already exists; Use [force-release] to skip check."
exit 1
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
else
echo "Will create tag ${{ env.TAG_NAME }} on release."
echo "PUSH_TAG=true" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-dotnet@v3
with:
Expand Down

0 comments on commit ab28683

Please sign in to comment.