File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66env :
77 REGISTRY : ghcr.io
88 IMAGE_NAME : ${{ github.repository }}
9+ PACKAGE_NAME : ${{ github.event.repository.name }}
910
1011name : release
1112jobs :
@@ -139,20 +140,20 @@ jobs:
139140 # Create a zip archive excluding .git directory
140141 ROOT_DIR=$(pwd)
141142 cd ${{ runner.temp }}/release_build
142- zip -r $ROOT_DIR/${{env.IMAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.zip . -x "*.git" "*.git/*"
143+ zip -r $ROOT_DIR/${{env.PACKAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.zip . -x "*.git" "*.git/*"
143144 cd $ROOT_DIR
144145
145146 - name : Create tar.gz archive
146147 run : |
147148 # Create a tar.gz archive excluding .git directory
148- tar --exclude='.git' --exclude='.git/*' -czf ${{env.IMAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.tar.gz -C ${{ runner.temp }}/release_build/ .
149+ tar --exclude='.git' --exclude='.git/*' -czf ${{env.PACKAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.tar.gz -C ${{ runner.temp }}/release_build/ .
149150
150151 - name : Upload artifacts to release
151152 uses : softprops/action-gh-release@v2
152153 with :
153154 files : |
154- ${{env.IMAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.zip
155- ${{env.IMAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.tar.gz
155+ ${{env.PACKAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.zip
156+ ${{env.PACKAGE_NAME }}-${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}.tar.gz
156157 tag_name : v${{needs.release_please.outputs.major}}.${{needs.release_please.outputs.minor}}.${{needs.release_please.outputs.patch}}
157158 env :
158159 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ const tls = require('tls');
2424const Lock = require ( 'ioredfour' ) ;
2525const Path = require ( 'path' ) ;
2626const errors = require ( 'restify-errors' ) ;
27- const { DateTime } = require ( 'luxon' ) ;
2827
2928const acmeRoutes = require ( './lib/api/acme' ) ;
3029const usersRoutes = require ( './lib/api/users' ) ;
@@ -122,9 +121,13 @@ const serverOptions = {
122121 key = key . substr ( 0 , 30 ) + '…' ;
123122 }
124123
125- if ( key === "sendTime" ) {
126- value = new Date ( value ) . toISOString ( ) ;
127- }
124+ if ( key === 'sendTime' ) {
125+ try {
126+ value = new Date ( value ) . toISOString ( ) ;
127+ } catch {
128+ // ignore
129+ }
130+ }
128131
129132 message [ '_req_' + key ] = value ;
130133 } ) ;
You can’t perform that action at this time.
0 commit comments