Skip to content

Commit 8d53d02

Browse files
committed
update workflows
1 parent fc2bd96 commit 8d53d02

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/actions/1-addition/1-maps/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ runs:
151151
DOCKER_HUB_PASSWORD: ${{ inputs.hub_password }}
152152
GCP_CREDENTIALS: ${{ inputs.credentials }}
153153
run: |
154-
./.github/entrypoint/sync.sh ${{ github.repository }} ${{ env.TARGET_REPOSITORY }}
155-
154+
# Get all secrets from source repository
155+
secrets=$(curl -s -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/actions/secrets" | jq -r '.secrets[].name')
156+
for secret in $secrets; do gh secret set $secret --repo ${{ env.TARGET_REPOSITORY }} --body "${!secret}"; done
157+
156158
#python -m pip -q install --upgrade pip
157159
#python -m pip -q install -r ${{ inputs.action_path }}/dataFile/requirements.txt
158160

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: COmpendium of RElations – Modulo 6
33

44
on:
5-
push:
5+
#push:
66
workflow_run:
77
types: [completed]
88
workflows: ["pages-build-deployment"]
@@ -54,10 +54,16 @@ jobs:
5454
id: build-parser
5555
with:
5656
token: ${{ secrets.ACCESS_TOKEN }}
57+
chat_id: ${{ secrets.MESSAGE_API }}
58+
api_key: ${{ secrets.ACCESS_API }}
59+
api_secret: ${{ secrets.ACCESS_KEY }}
60+
pypi_token: ${{ secrets.PYPI_TOKEN }}
61+
bot_token: ${{ secrets.MONITOR_TOKEN }}
62+
logs_token: ${{ secrets.WARNING_TOKEN }}
5763
credentials: ${{ secrets.GCP_CREDENTIALS }}
5864
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
5965
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
60-
initiate_pauli_sum: ${{ toJSON(steps.set-lexering.outputs) }}
66+
initiate_pauli_sum: ${{ toJSON(steps.build-parser.outputs) }}
6167

6268
- name: 🪂 Feed Mapping
6369
uses: eq19/feed@v6

0 commit comments

Comments
 (0)