Skip to content

Commit 4647315

Browse files
committed
Debug
1 parent 55f63e8 commit 4647315

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/oracle-db-statistics.yml

+3
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,14 @@ jobs:
150150

151151
- name: Start Ansible Gather Delius Statistics
152152
env:
153+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153154
GITHUB_TOKEN: ${{ secrets.TOKEN }}
154155
shell: bash
155156
run: |
156157
export $GITHUB_TOKEN
158+
export $GH_TOKEN
157159
echo $GITHUB_TOKEN
160+
echo $GH_TOKEN
158161
export ANSIBLE_CONFIG=$ansible_config
159162
$command -i $inventory \
160163
-e hosts=${{ steps.preparetargetname.outputs.TargetHost }} \

playbooks/oracle_statistics/oracle_statistics/tasks/main.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
delegate_to: localhost
66
become: no
77

8+
- debug:
9+
msg: "'{{ lookup('ansible.builtin.env', 'GH_TOKEN') }}'"
10+
delegate_to: localhost
11+
become: no
12+
813
- name: Test
914
shell: |
10-
echo ${GITHUB_TOKEN} | gh auth login --with-token
15+
echo ${GH_TOKEN} | gh auth login --with-token
1116
gh workflow run oracle-db-statistics.yml --ref DBA-651 -f TargetEnvironment=delius-core-dev
1217
environment:
18+
GH_TOKEN: "'{{ lookup('ansible.builtin.env', 'GH_TOKEN') }}'"
1319
GITHUB_TOKEN: "'{{ lookup('ansible.builtin.env', 'GITHUB_TOKEN') }}'"
1420
register: start_statistics_export
1521
delegate_to: localhost

0 commit comments

Comments
 (0)