Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/citus-package-all-platforms-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Citus package all platforms tests

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGING_PASSPHRASE: ${{ secrets.PACKAGING_PASSPHRASE }}
MICROSOFT_EMAIL: gindibay@microsoft.com
USER_NAME: Gurkan Indibay
Expand Down Expand Up @@ -36,6 +34,19 @@ jobs:
PLATFORM: ${{ matrix.platform }}

steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.GH_APP_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export GitHub App token to environment
run: |
echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
echo "GITHUB_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v3

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/packaging-methods-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Packaging helper methods tests

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

on:
push:
branches:
Expand All @@ -15,6 +12,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.GH_APP_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export GitHub App token to environment
run: echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v3

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/statistic-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ env:
DB_PASSWORD: ${{ secrets.STATS_DB_PASSWORD }}
DB_HOST_AND_PORT: ${{ secrets.STATS_DB_HOST_AND_PORT }}
DB_NAME: ${{ secrets.STATS_DB_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
on:
schedule:
- cron: "0 16 * * *"
Expand All @@ -25,6 +24,17 @@ jobs:
job_name: [docker_pull_citus, github_clone_citus, homebrew_citus]

steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.GH_APP_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export GitHub App token to environment
run: echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v3

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/statistic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ env:
DB_PASSWORD: ${{ secrets.STATS_DB_PASSWORD }}
DB_HOST_AND_PORT: ${{ secrets.STATS_DB_HOST_AND_PORT }}
DB_NAME: ${{ secrets.STATS_DB_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PACKAGE_CLOUD_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
PACKAGE_CLOUD_ADMIN_API_TOKEN: ${{ secrets.PACKAGE_CLOUD_ADMIN_API_TOKEN }}
on:
Expand All @@ -21,6 +20,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.GH_APP_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export GitHub App token to environment
run: echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v3

Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/tool-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Tool Tests

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
MICROSOFT_EMAIL: gindibay@microsoft.com
USER_NAME: Gurkan Indibay
MAIN_BRANCH: all-citus
Expand All @@ -27,6 +26,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ vars.GH_APP_ID || secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
owner: citusdata

- name: Export GitHub App token to environment
run: echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"

- name: Checkout repository
uses: actions/checkout@v3
with:
Expand Down
Loading