mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-24 20:25:38 +00:00
Removing token from the checkout
This commit is contained in:
parent
475eee46b9
commit
a8f1536466
22
.github/workflows/build_artifacts.yml
vendored
22
.github/workflows/build_artifacts.yml
vendored
|
@ -22,11 +22,21 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: Generate a token for Rekku
|
||||||
|
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
||||||
|
id: generate-rekku-token
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.REKKU_APP_ID }}
|
||||||
|
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
||||||
|
repositories: "RetroDECK,Cooker"
|
||||||
|
owner: "RetroDECK"
|
||||||
|
|
||||||
- name: Clone repo
|
- name: Clone repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
uses: ./.github/workflows/build_artifacts.yml
|
uses: ./.github/workflows/build_artifacts.yml
|
||||||
|
@ -88,16 +98,6 @@ jobs:
|
||||||
id: branch_name
|
id: branch_name
|
||||||
run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV
|
run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate a token for Rekku
|
|
||||||
if: ${{ github.repository == 'RetroDECK/RetroDECK' }}
|
|
||||||
id: generate-rekku-token
|
|
||||||
uses: actions/create-github-app-token@v1
|
|
||||||
with:
|
|
||||||
app-id: ${{ vars.REKKU_APP_ID }}
|
|
||||||
private-key: ${{ secrets.REKKU_PRIVATE_KEY }}
|
|
||||||
repositories: "RetroDECK,Cooker"
|
|
||||||
owner: "RetroDECK"
|
|
||||||
|
|
||||||
- name: Publish the artifacts in a new release
|
- name: Publish the artifacts in a new release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue