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
31 changes: 31 additions & 0 deletions .github/actions/manual_inflate/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Inflate Module
description: Run commands in the NetKAN container to inflate a given module

inputs:
AWS_ACCESS_KEY_ID:
description: Credentials for AWS
required: true
AWS_SECRET_ACCESS_KEY:
description: Credentials for AWS
required: true
AWS_DEFAULT_REGION:
description: Region for AWS
required: true
identifier:
description: The netkan to inflate
required: true

runs:
using: docker
image: kspckan/netkan
env:
GAME_ID: ksp
NETKAN_REMOTES: ksp=https://github.com/KSP-CKAN/NetKAN.git
CKANMETA_REMOTES: ksp=https://github.com/KSP-CKAN/CKAN-meta.git
INFLATION_QUEUES: ksp=Inbound.fifo
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ inputs.AWS_DEFAULT_REGION }}
args:
- inflate-netkan
- ${{ inputs.identifier }}
17 changes: 4 additions & 13 deletions .github/workflows/manual_inflate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ jobs:
Inflate_module:
runs-on: ubuntu-latest
steps:
- name: Get NetKAN repo
uses: actions/checkout@v4
with:
path: NetKAN
- name: Get CKAN-meta repo
uses: actions/checkout@v4
with:
repository: KSP-CKAN/CKAN-meta
path: CKAN-meta
- uses: actions/checkout@v4
- name: Manual inflate
uses: HebaruSan/inflate-netkan@master
env:
uses: ./.github/actions/manual_inflate
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
with:
identifier: ${{ github.event.inputs.identifier }}
identifier: ${{ github.event.inputs.identifier }}
Loading