@@ -9,11 +9,15 @@ concurrency:
99 cancel-in-progress : false
1010
1111env :
12- GH_TOKEN : ${{ secrets.ORB_CI_GH_TOKEN }}
12+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1313 SEMANTIC_RELEASE_PACKAGE : ${{ github.repository }}
1414 PYTHON_RUNTIME_VERSION : " 3.11"
1515 APP_NAME : diode-netbox-plugin
16- PYTHON_PACKAGE_NAME : netboxlabs-diode-netbox-plugin
16+ PYTHON_PACKAGE_NAME : netboxlabs_diode_netbox_plugin
17+
18+ permissions :
19+ id-token : write
20+ contents : write
1721
1822jobs :
1923 get-python-package-name :
3842 with :
3943 node-version : " lts/*"
4044 - name : Write package.json
41- uses : DamianReeves/write-file-action@master
45+ uses : DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
4246 with :
4347 path : ./package.json
4448 write-mode : overwrite
5256 }
5357 }
5458 - name : Write .releaserc.json
55- uses : DamianReeves/write-file-action@master
59+ uses : DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
5660 with :
5761 path : ./.releaserc.json
5862 write-mode : overwrite
@@ -104,8 +108,10 @@ jobs:
104108 run : echo "::set-output name=short-sha::${GITHUB_SHA::7}"
105109 - name : Set release version
106110 id : release-version
111+ env :
112+ NEXT_RELEASE_VERSION : ${{ steps.get-next-version.outputs.new-release-version }}
107113 run : |
108- echo "::set-output name= release-version:: `echo ${{ steps.get-next-version.outputs.new-release-version }} | sed 's/v//g'`"
114+ echo "release-version= `echo $NEXT_RELEASE_VERSION | sed 's/v//g'`" >> $GITHUB_OUTPUT
109115 outputs :
110116 new-release-published : ${{ steps.get-next-version.outputs.new-release-published }}
111117 new-release-version : ${{ steps.release-version.outputs.release-version }}
@@ -119,16 +125,17 @@ jobs:
119125 if : needs.get-next-version.outputs.new-release-published == 'true'
120126 steps :
121127 - uses : actions/checkout@v4
122- - run : echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }} commit ${{ needs.get-next-version.outputs.short-sha }}"
128+ - name : Confirm version
129+ env :
130+ NEXT_RELEASE_VERSION : ${{ needs.get-next-version.outputs.new-release-version }}
131+ NEXT_RELEASE_SHORT_SHA : ${{ needs.get-next-version.outputs.short-sha }}
132+ run : echo "The new release version is $NEXT_RELEASE_VERSION commit $NEXT_RELEASE_SHORT_SHA"
123133
124134 build :
125135 name : Build
126136 needs : [ get-python-package-name, get-next-version ]
127137 runs-on : ubuntu-latest
128138 timeout-minutes : 5
129- permissions :
130- id-token : write
131- contents : read
132139 env :
133140 BUILD_VERSION : ${{ needs.get-next-version.outputs.new-release-version }}
134141 BUILD_TRACK : release
@@ -165,7 +172,7 @@ jobs:
165172 retention-days : 30
166173 if-no-files-found : error
167174 - name : Publish release distributions to PyPI
168- uses : pypa/gh-action-pypi-publish@release/v1
175+ uses : pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v.1.12.3
169176 with :
170177 packages-dir : dist
171178
@@ -180,7 +187,7 @@ jobs:
180187 with :
181188 node-version : " lts/*"
182189 - name : Write package.json
183- uses : DamianReeves/write-file-action@master
190+ uses : DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
184191 with :
185192 path : ./package.json
186193 write-mode : overwrite
@@ -194,7 +201,7 @@ jobs:
194201 }
195202 }
196203 - name : Write .releaserc.json
197- uses : DamianReeves/write-file-action@master
204+ uses : DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
198205 with :
199206 path : ./.releaserc.json
200207 write-mode : overwrite
0 commit comments