Skip to content

Instantly share code, notes, and snippets.

@lukaszraczylo
Last active November 28, 2022 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszraczylo/ac332a8d8c755cc1365e4e377d1180da to your computer and use it in GitHub Desktop.
Save lukaszraczylo/ac332a8d8c755cc1365e4e377d1180da to your computer and use it in GitHub Desktop.
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