ci(github-actions) bump softprops/action-gh-release from 1 to 2 #167
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
debug: | |
type: choice | |
description: Debug mode | |
required: false | |
options: | |
- "true" | |
- "false" | |
lorem-ipsum: | |
type: choice | |
description: Lorem ipsum | |
required: true | |
options: | |
- foo | |
- bar | |
default: foo | |
# Allow one concurrent | |
concurrency: | |
group: ${{ format('{0}-{1}-{2}-{3}-{4}', github.workflow, github.event_name, github.ref, github.base_ref, github.head_ref) }} | |
cancel-in-progress: true | |
env: | |
DEBUG: ${{ inputs.debug || secrets.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_RUNNER_DEBUG || secrets.ACTIONS_STEP_DEBUG || vars.ACTIONS_STEP_DEBUG || false }} | |
FOO: BAR | |
jobs: | |
validate: | |
name: Validate | |
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft) }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Detect changes | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: | | |
gh-workflows: | |
- '.github/workflows/**' | |
md: | |
- '**/*.md' | |
- name: actionlint | |
if: ${{ steps.changes.outputs.gh-workflows == 'true' }} | |
uses: raven-actions/actionlint@v1 | |
with: | |
flags: "-ignore SC2086" | |
- name: Markdown Links | |
if: ${{ steps.changes.outputs.md == 'true' }} | |
uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
with: | |
config-file: .github/linters/.markdown-link-check.json | |
dog-food: | |
name: Dog food (test inputs) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Debug Action (inputs) | |
id: debug | |
uses: ./ | |
with: | |
vars-context: ${{ toJson(vars) }} | |
secrets-context: ${{ toJson(secrets) }} | |
needs-context: ${{ toJson(needs) }} | |
inputs-context: ${{ toJson(inputs) }} | |
smee: true | |
- name: Debug outputs | |
if: ${{ steps.debug.outputs.smee == 'true' }} | |
run: | | |
echo "Your SMEE.io URL is: ${{ steps.debug.outputs.smee-url }}" | |
- name: Debug Action (no inputs) | |
uses: ./ | |
- name: Debug Action (only debug) | |
if: ${{ env.DEBUG == 'true' }} | |
uses: ./ | |
with: | |
vars-context: ${{ toJson(vars) }} | |
secrets-context: ${{ toJson(secrets) }} | |
needs-context: ${{ toJson(needs) }} | |
inputs-context: ${{ toJson(inputs) }} | |
dog-food-matrix: | |
name: Dog food (test runners) | |
needs: | |
- dog-food | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Debug Action | |
uses: ./ | |
with: | |
vars-context: ${{ toJson(vars) }} | |
secrets-context: ${{ toJson(secrets) }} | |
needs-context: ${{ toJson(needs) }} | |
inputs-context: ${{ toJson(inputs) }} |