Skip to content

Commit

Permalink
Merge branch 'master' into 1946-naas-create-templates-using-mychatgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Aug 7, 2023
2 parents 31f04e2 + 1d46324 commit b67be33
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 98 deletions.
48 changes: 24 additions & 24 deletions .github/push_templates_to_algolia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"id": "aa0e3e6f-1260-4452-8abf-7c084e26c8a4",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:53.562703Z",
"iopub.status.busy": "2023-08-07T14:04:53.561686Z",
"iopub.status.idle": "2023-08-07T14:04:53.627944Z",
"shell.execute_reply": "2023-08-07T14:04:53.626985Z"
"iopub.execute_input": "2023-08-07T14:27:49.794112Z",
"iopub.status.busy": "2023-08-07T14:27:49.793410Z",
"iopub.status.idle": "2023-08-07T14:27:49.854863Z",
"shell.execute_reply": "2023-08-07T14:27:49.854053Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -95,10 +95,10 @@
"id": "cfa97168-63eb-4e8c-89c3-0a5d26f47740",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:53.631520Z",
"iopub.status.busy": "2023-08-07T14:04:53.631292Z",
"iopub.status.idle": "2023-08-07T14:04:53.635128Z",
"shell.execute_reply": "2023-08-07T14:04:53.634340Z"
"iopub.execute_input": "2023-08-07T14:27:49.859093Z",
"iopub.status.busy": "2023-08-07T14:27:49.858568Z",
"iopub.status.idle": "2023-08-07T14:27:49.862862Z",
"shell.execute_reply": "2023-08-07T14:27:49.862080Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -141,10 +141,10 @@
"id": "7a9c86c2-931d-4113-abbc-31b3f517b6c4",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:53.638508Z",
"iopub.status.busy": "2023-08-07T14:04:53.638204Z",
"iopub.status.idle": "2023-08-07T14:04:53.650827Z",
"shell.execute_reply": "2023-08-07T14:04:53.650035Z"
"iopub.execute_input": "2023-08-07T14:27:49.866859Z",
"iopub.status.busy": "2023-08-07T14:27:49.866377Z",
"iopub.status.idle": "2023-08-07T14:27:49.880477Z",
"shell.execute_reply": "2023-08-07T14:27:49.879805Z"
},
"tags": []
},
Expand Down Expand Up @@ -178,10 +178,10 @@
"id": "c50e96b2-4403-413c-a99a-9243be0c0a04",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:53.654421Z",
"iopub.status.busy": "2023-08-07T14:04:53.653924Z",
"iopub.status.idle": "2023-08-07T14:04:53.829584Z",
"shell.execute_reply": "2023-08-07T14:04:53.828626Z"
"iopub.execute_input": "2023-08-07T14:27:49.884185Z",
"iopub.status.busy": "2023-08-07T14:27:49.883674Z",
"iopub.status.idle": "2023-08-07T14:27:50.202513Z",
"shell.execute_reply": "2023-08-07T14:27:50.201763Z"
},
"tags": []
},
Expand Down Expand Up @@ -230,10 +230,10 @@
"id": "da661ba3-fd15-4abc-bd4f-d13ae77b82b0",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:53.833245Z",
"iopub.status.busy": "2023-08-07T14:04:53.832882Z",
"iopub.status.idle": "2023-08-07T14:04:54.025835Z",
"shell.execute_reply": "2023-08-07T14:04:54.024853Z"
"iopub.execute_input": "2023-08-07T14:27:50.206380Z",
"iopub.status.busy": "2023-08-07T14:27:50.205849Z",
"iopub.status.idle": "2023-08-07T14:27:50.558267Z",
"shell.execute_reply": "2023-08-07T14:27:50.557381Z"
},
"tags": []
},
Expand All @@ -260,10 +260,10 @@
"id": "f1482a8f-4ce5-4e04-93c8-ddd883375d67",
"metadata": {
"execution": {
"iopub.execute_input": "2023-08-07T14:04:54.029782Z",
"iopub.status.busy": "2023-08-07T14:04:54.029523Z",
"iopub.status.idle": "2023-08-07T14:04:54.043690Z",
"shell.execute_reply": "2023-08-07T14:04:54.042861Z"
"iopub.execute_input": "2023-08-07T14:27:50.562874Z",
"iopub.status.busy": "2023-08-07T14:27:50.562431Z",
"iopub.status.idle": "2023-08-07T14:27:50.577979Z",
"shell.execute_reply": "2023-08-07T14:27:50.577200Z"
},
"tags": []
},
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/refresh_updated_at.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: Refresh updated at
on:
pull_request:
types:
- closed
branches:
- master
# name: Refresh updated at
# on:
# pull_request:
# types:
# - closed
# branches:
# - master

jobs:
refresh_updated_at:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
ref: 'master'
# jobs:
# refresh_updated_at:
# if: github.event.pull_request.merged == true
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
# ref: 'master'

- uses: actions/setup-python@v4
with:
python-version: '3.9'
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
# - uses: actions/setup-python@v4
# with:
# python-version: '3.9'
# token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'

- run: "pip install papermill==2.4.0 requests pandas==1.5.3 ipykernel GitPython==3.1.32"
# - run: "pip install papermill==2.4.0 requests pandas==1.5.3 ipykernel GitPython==3.1.32"

- name: Get required variables And run script
env:
issue_number: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
# - name: Get required variables And run script
# env:
# issue_number: ${{ github.event.pull_request.number }}
# GITHUB_TOKEN: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'

run: |
papermill -p pull_number $issue_number Naas_Update_dates_on_PR_merged.ipynb ./Naas_Update_dates_on_PR_merged.out.ipynb
rm ./Naas_Update_dates_on_PR_merged.out.ipynb
- name: Commit and push
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
(git commit -m 'UpdatedAt: Refresh' -a && git push) || echo "💡 It seems that there is nothing to commit."
# run: |
# papermill -p pull_number $issue_number Naas_Update_dates_on_PR_merged.ipynb ./Naas_Update_dates_on_PR_merged.out.ipynb
# rm ./Naas_Update_dates_on_PR_merged.out.ipynb
# - name: Commit and push
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# (git commit -m 'UpdatedAt: Refresh' -a && git push) || echo "💡 It seems that there is nothing to commit."
Loading

0 comments on commit b67be33

Please sign in to comment.