Skip to content

Commit

Permalink
discord on release action
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlebl committed Sep 18, 2024
1 parent 75f9a46 commit e9d339c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
test_api:
name: Run automatic test for API
uses: ./.github/workflows/test-api.yml

push_to_hub:
name: Build and push Docker images
needs: test_api
Expand Down Expand Up @@ -58,3 +59,21 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

github-releases-to-discord:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Github Releases To Discord
uses: SethCohen/github-releases-to-discord@v1.13.1
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
color: '2105893'
username: 'Release Changelog'
avatar_url: 'https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png'
content: '||@everyone||'
footer_title: 'Changelog'
footer_icon_url: 'https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png'
footer_timestamp: true

4 changes: 2 additions & 2 deletions nomad-front-end/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nomad-front-end",
"private": false,
"version": "3.5.3 - beta",
"version": "3.5.3",
"type": "module",
"scripts": {
"start": "env-cmd -f ../env/frontend.env vite",
Expand Down Expand Up @@ -44,4 +44,4 @@
"env-cmd": "^10.1.0",
"vite": "^5.0.2"
}
}
}
20 changes: 15 additions & 5 deletions nomad-front-end/src/components/Forms/ParamSetForm/ParamSetForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const ParamSetForm = props => {
<Form.Item
name='name'
label='Name'
tooltip='The name defined here has to match a name of parameter set defined in TopSpin that is accessible via rpar command'
rules={[{ required: true, whitespace: true, message: 'Parameter set name is required' }]}
>
<Input disabled={props.editing} style={{ width: '50%' }} />
Expand All @@ -104,7 +105,7 @@ const ParamSetForm = props => {

<Divider>
Default Parameters
<Tooltip title='Parameters required for submission traffic control'>
<Tooltip title='Parameters required for submission traffic control. The values have to match those defined in TopSpin parameter of the same name'>
<QuestionCircleOutlined className={classes.Hint} />
</Tooltip>
</Divider>
Expand Down Expand Up @@ -184,7 +185,7 @@ const ParamSetForm = props => {
</Row>
<Divider>
Custom Parameters
<Tooltip title='Parameters that users are able to change at submission alongside with default parameters ns and d1'>
<Tooltip title='Parameters that users are able to change at submission alongside with default parameters ns and d1. The values have to match those defined in TopSpin parameter of the same name'>
<QuestionCircleOutlined className={classes.Hint} />
</Tooltip>
</Divider>
Expand All @@ -193,7 +194,11 @@ const ParamSetForm = props => {
{(fields, { add, remove }) => (
<>
{fields.map(field => (
<Space key={field.key} style={{ display: 'flex', marginBottom: 8 }} align='baseline'>
<Space
key={field.key}
style={{ display: 'flex', marginBottom: 8 }}
align='baseline'
>
<Row align='top'>
<Col span={4}>
<Form.Item
Expand All @@ -218,7 +223,9 @@ const ParamSetForm = props => {
name={[field.name, 'comment']}
fieldKey={[field.fieldKey, 'comment']}
style={{ margin: 0 }}
rules={[{ required: true, whitespace: true, message: 'Comment is required' }]}
rules={[
{ required: true, whitespace: true, message: 'Comment is required' }
]}
>
<Input placeholder='Comment' style={{ width: 285 }} />
</Form.Item>
Expand All @@ -234,7 +241,10 @@ const ParamSetForm = props => {
</Form.Item>
</Col>
<Col span={1}>
<MinusCircleOutlined style={{ marginTop: 10 }} onClick={() => remove(field.name)} />
<MinusCircleOutlined
style={{ marginTop: 10 }}
onClick={() => remove(field.name)}
/>
</Col>
</Row>
</Space>
Expand Down
4 changes: 2 additions & 2 deletions nomad-rest-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nomad-rest-api",
"version": "3.5.3 - beta",
"version": "3.5.3",
"description": "REST API back-end for NOMAD system",
"main": "server.js",
"type": "module",
Expand Down Expand Up @@ -44,4 +44,4 @@
"supertest": "^7.0.0",
"vitest": "^1.3.1"
}
}
}

0 comments on commit e9d339c

Please sign in to comment.