push-to-s3 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: push-to-s3 | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
get-runner: | ||
name: Get a runner label to use for entire workflow | ||
runs-on: [self-hosted, org-runner, sl-core] | ||
outputs: | ||
RUNNER: ${{ steps.name.outputs.runner }} | ||
steps: | ||
- id: name | ||
run: echo "runner=$(printf ${{ runner.name }} | tail -c 20)" >> $GITHUB_OUTPUT | ||
push-to-s3: | ||
name: "Push Hugo Site To S3" | ||
runs-on: ${{ needs.get-runner.outputs.runner }} | ||
needs: | ||
- get-runner | ||
steps: | ||
- name: "Push Hugo Site To S3" | ||
shell: bash | ||
run: echo "Hello World" | ||
clean-runner: | ||
uses: cisco-sbg/talos-releng-shared-workflows/.github/workflows/clean-runner.yml@main | ||
Check failure on line 27 in .github/workflows/push-to-s3.yml
|
||
name: Clean runner | ||
needs: | ||
- get-runner | ||
- push-to-s3 | ||
with: | ||
runner: ${{ needs.get-runner.outputs.RUNNER }} |