Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: [CI] migrate reload triggers to new backend #22

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/reload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ on:
jobs:
reload:
name: Reload wiki
runs-on: ubuntu-latest

steps:
- name: Reload wiki
run: |
aws lambda invoke --cli-binary-format raw-in-base64-out --region ${{ secrets.AWS_REGION }} --function-name "${{ secrets.RELOAD_FUNCTION_NAME }}" --payload='{"secret":"${{ secrets.RELOAD_SECRET }}"}' output.txt
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.actor != 'DorpsGek'
# No need to reload on a commit made by the wiki.
if: ${{ github.actor != 'wiki-backend' }}
uses: OpenTTD/actions/.github/workflows/rw-nomad-reload.yml@v4
secrets:
RELOAD_SECRET: ${{ secrets.RELOAD_SECRET }}
NOMAD_SERVICE_KEY: ${{ secrets.NOMAD_SERVICE_PROD_KEY }}
with:
service: wiki