Skip to content

Commit e09337d

Browse files
committed
Fix GitHub Actions workflow startup failures - Remove invalid 'secrets: read' permission - Replace deprecated actions/create-release@v1 with GitHub CLI - Update release creation to use modern gh command - Resolve workflow configuration issues
1 parent 787e412 commit e09337d

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/version-deploy.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Deploy Documentation Version
33
permissions:
44
contents: write
55
actions: read
6-
secrets: read
76

87
on:
98
push:
@@ -91,22 +90,18 @@ jobs:
9190
fi
9291
9392
- name: Create Release Notes
94-
uses: actions/create-release@v1
9593
env:
9694
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97-
with:
98-
tag_name: ${{ steps.version.outputs.full_version }}
99-
release_name: NetBox Enterprise Documentation ${{ steps.version.outputs.full_version }}
100-
body: |
101-
## NetBox Enterprise Documentation ${{ steps.version.outputs.full_version }}
102-
103-
Documentation for NetBox Enterprise ${{ steps.version.outputs.major_minor }}.
104-
105-
### View Documentation
106-
- [Latest Documentation](https://netboxlabs.com/docs/)
107-
- [Version ${{ steps.version.outputs.major_minor }} Documentation](https://netboxlabs.com/docs/${{ steps.version.outputs.major_minor }}/)
108-
109-
### Changes
110-
This release includes documentation updates for NetBox Enterprise ${{ steps.version.outputs.full_version }}.
111-
draft: false
112-
prerelease: false
95+
run: |
96+
gh release create "${{ steps.version.outputs.full_version }}" \
97+
--title "NetBox Enterprise Documentation ${{ steps.version.outputs.full_version }}" \
98+
--notes "## NetBox Enterprise Documentation ${{ steps.version.outputs.full_version }}
99+
100+
Documentation for NetBox Enterprise ${{ steps.version.outputs.major_minor }}.
101+
102+
### View Documentation
103+
- [Latest Documentation](https://netboxlabs.com/docs/)
104+
- [Version ${{ steps.version.outputs.major_minor }} Documentation](https://netboxlabs.com/docs/${{ steps.version.outputs.major_minor }}/)
105+
106+
### Changes
107+
This release includes documentation updates for NetBox Enterprise ${{ steps.version.outputs.full_version }}."

0 commit comments

Comments
 (0)