name: Raspberry Pi Linux Kernel [Sources] on: workflow_call: inputs: BRANCH: required: true outputs: VERSION: required: true jobs: job: name: Raspberry Pi Linux Sources runs-on: cicd.any outputs: VERSION: ${{ steps.environment.outputs.version }} steps: # - name: Linux Sources [Clone] # run: | # /usr/bin/git clone --verbose --depth='1' --branch "${{ inputs.branch }}" 'https://github.com/raspberrypi/linux' - name: Environment id: environment run: | VERSION='6.12.16' /usr/bin/echo "::set-output name=VERSION::${VERSION}" /usr/bin/echo "VERSION=${VERSION}" >> "${GITHUB_OUTPUT}" /usr/bin/echo "Set Variable 'VERSION' to '${VERSION}'" # - name: Linux Sources [Archive] # env: # VERSION: ${{ steps.environment.outputs.version }} # run: | # /usr/bin/tar --create --directory="./linux" --file="./linux-sources-${VERSION}.tar.gz" --gzip '.' --verbose # - name: Linux Sources [Artifact Upload] # uses: https://github.com/christopherhx/gitea-upload-artifact@v7 # with: # name: linux-sources-${{ steps.environment.outputs.version }}.tar.gz # path: ./linux-sources-${{ steps.environment.outputs.version }}.tar.gz # if-no-files-found: error # overwrite: true # archive: false