Fixing workflows to correctly outsource Rekku Token

This commit is contained in:
XargonWan 2024-11-12 15:10:56 +09:00
parent 08033954dc
commit 2f44eb03ce
2 changed files with 18 additions and 8 deletions

View file

@ -21,18 +21,23 @@ env:
DATE: ${{ github.run_id }}
jobs:
# Generate Rekku Token Job
Generate-Rekku-Token:
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
secrets:
REKKU_PRIVATE_KEY: ${{ secrets.REKKU_PRIVATE_KEY }}
Building-project:
runs-on: ubuntu-latest
env:
REKKU_TOKEN: ${{ needs.Generate-Rekku-Token.outputs.rekku_token }}
steps:
- name: Prepearing environment
run: curl -s "https://raw.githubusercontent.com/RetroDECK/components-template/refs/heads/main/automation_tools/install_dependencies.sh" | /bin/bash
- name: Generate a token for Rekku
id: generate-rekku-token
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
- name: Clone repo
uses: actions/checkout@v4
with:

View file

@ -9,8 +9,17 @@ on:
required: true
jobs:
# Generate Rekku Token Job
Generate-Rekku-Token:
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
secrets:
REKKU_PRIVATE_KEY: ${{ secrets.REKKU_PRIVATE_KEY }}
sync-upstream:
runs-on: ubuntu-latest
env:
REKKU_TOKEN: ${{ needs.Generate-Rekku-Token.outputs.rekku_token }}
steps:
- name: Checkout repository
@ -23,10 +32,6 @@ jobs:
git checkout "${{ github.ref_name }}"
git branch --set-upstream-to=upstream/${{ github.ref_name }} ${{ github.ref_name }}
- name: Generate a token for Rekku
id: generate-rekku-token
uses: RetroDECK/components-template/.github/workflows/generate_rekku_token.yml@main
- name: Configuring Git
run: |
git config --global protocol.file.allow always