Last active
November 28, 2022 11:27
-
-
Save lukaszraczylo/ac332a8d8c755cc1365e4e377d1180da to your computer and use it in GitHub Desktop.
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: Sample github action | |
on: | |
workflow_call: | |
inputs: | |
enable-code-scans: | |
required: false | |
type: boolean | |
secrets: | |
ghcr-token: | |
required: true | |
description: Github token allowing access to the libraries and ghcr. | |
jobs: | |
sample-action: | |
name: Sample action | |
runs-on: ubuntu-20.04 | |
if: ${{ inputs.enable-code-scans }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Run sample action | |
with: | |
ghcr-token: ${{ secrets.ghcr-token }} | |
run: | | |
echo "Running sample action" | |
echo "ghcr-token: ${{ secrets.ghcr-token }}" | |
echo "enable-code-scans: ${{ inputs.enable-code-scans }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment