File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9696
9797 - name : Fetch schemas from pfSense
9898 run : |
99+ curl -s -k -u admin:pfsense -X GET https://pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE.actions.pfrest.org/api/v2/schema/native > native.json
99100 curl -s -k -u admin:pfsense -X GET https://pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE.actions.pfrest.org/api/v2/schema/openapi > openapi.json
100101 curl -s -k -u admin:pfsense -X GET https://pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE.actions.pfrest.org/api/v2/schema/graphql > schema.graphql
101102
@@ -105,6 +106,12 @@ jobs:
105106 /usr/local/bin/VBoxManage controlvm pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE poweroff || true
106107 /usr/local/bin/VBoxManage snapshot pfSense-${{ env.DEFAULT_PFSENSE_VERSION }}-RELEASE restore initial
107108
109+ - name : Upload Native schema
110+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
111+ with :
112+ name : native.json
113+ path : native.json
114+
108115 - name : Upload OpenAPI schema
109116 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
110117 with :
@@ -117,6 +124,14 @@ jobs:
117124 name : schema.graphql
118125 path : schema.graphql
119126
127+ - name : Release schemas
128+ uses : softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
129+ with :
130+ files : |
131+ native.json
132+ openapi.json
133+ schema.graphql
134+
120135 trigger_ansible_collection_build :
121136 runs-on : ubuntu-latest
122137 needs : [release_pkg]
You can’t perform that action at this time.
0 commit comments