Skip to content
Merged
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
14 changes: 11 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Setup ruby
uses: ruby/setup-ruby@v1
Expand All @@ -33,8 +33,16 @@ jobs:
rake build

- name: Publish to the test repo
run: GITHUB_TOKEN=${{ secrets.OSC_WIAG_PUB_REPO_TOKEN }} /bin/bash push.sh "ood-documentation-test"
env:
GITHUB_TOKEN: ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}
NAME: ${{ secrets.OSC_ROBOT_GH_USER }}
EMAIL: ${{ secrets.OSC_ROBOT_GH_USER_EMAIL }}
run: /bin/bash push.sh "ood-documentation-test"

- name: Publish to the main repo
if: github.event_name == 'push'
run: GITHUB_TOKEN=${{ secrets.OSC_WIAG_PUB_REPO_TOKEN }} /bin/bash push.sh "ood-documentation"
env:
NAME: ${{ secrets.OSC_ROBOT_GH_USER }}
EMAIL: ${{ secrets.OSC_ROBOT_GH_USER_EMAIL }}
GITHUB_TOKEN: ${{ secrets.OSC_ROBOT_GH_PUB_REPO_TOKEN }}
run: /bin/bash push.sh "ood-documentation"
2 changes: 0 additions & 2 deletions push.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash

GITHUB_ORG="OSC"
NAME="oscwiag"
EMAIL="oscwiag@gmail.com"

# Update git configuration
git config --global user.name "${NAME}"
Expand Down
Loading