Convert simple-icons manual backup from submodule to tracked files
This commit is contained in:
31
logos/simple-icons.manual-backup-20251123-234134/.github/actions/check-is-fork/action.yml
vendored
Normal file
31
logos/simple-icons.manual-backup-20251123-234134/.github/actions/check-is-fork/action.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# When working in a fork, some workflows should not be executed
|
||||
# as they do not have the necessary permissions. This causes
|
||||
# them to fail and only serve to generate noise for people
|
||||
# watching the fork's activity.
|
||||
|
||||
name: Check if running in a fork
|
||||
description: Check if a workflow is running in a forked repository and set an output accordingly.
|
||||
|
||||
inputs:
|
||||
in-fork-message:
|
||||
description: Message to display when the workflow is running in a fork.
|
||||
required: true
|
||||
outputs:
|
||||
is-fork:
|
||||
description: Indicates if the current repository is a fork.
|
||||
value: ${{ steps.check-is-fork.outputs.is-fork }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: check-is-fork
|
||||
shell: bash
|
||||
env:
|
||||
IN_FORK_MESSAGE: ${{ inputs.in-fork-message }}
|
||||
run: |
|
||||
if [ "${{ github.repository_owner }}" != "simple-icons" ]; then
|
||||
echo "is-fork=true" >> $GITHUB_OUTPUT
|
||||
echo "$IN_FORK_MESSAGE"
|
||||
else
|
||||
echo "is-fork=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
25
logos/simple-icons.manual-backup-20251123-234134/.github/actions/get-labels/action.yml
vendored
Normal file
25
logos/simple-icons.manual-backup-20251123-234134/.github/actions/get-labels/action.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Get issue/pull request labels
|
||||
description: Get the current labels of an issue or pull request
|
||||
|
||||
inputs:
|
||||
issue_number:
|
||||
description: Issue or pull request number to get labels from
|
||||
required: true
|
||||
github-token:
|
||||
description: GitHub token used to authenticate with the GitHub API
|
||||
required: true
|
||||
outputs:
|
||||
labels:
|
||||
description: Labels of the issue or pull request
|
||||
value: ${{ steps.get-labels.outputs.labels }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: get-labels
|
||||
shell: sh
|
||||
env:
|
||||
GH_TOKEN: ${{ inputs.github-token }}
|
||||
run: |
|
||||
labels="$(gh api 'repos/simple-icons/simple-icons/issues/${{ inputs.issue_number }}' --jq '.labels.[].name' | tr '\n' ',')"
|
||||
echo "labels=$labels" >> $GITHUB_OUTPUT
|
||||
16
logos/simple-icons.manual-backup-20251123-234134/.github/actions/get-version/action.yml
vendored
Normal file
16
logos/simple-icons.manual-backup-20251123-234134/.github/actions/get-version/action.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Get version
|
||||
description: Get the current version of the project
|
||||
|
||||
outputs:
|
||||
version:
|
||||
description: The version of the project
|
||||
value: ${{ steps.get-version.outputs.version }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: get-version
|
||||
shell: sh
|
||||
run: |
|
||||
version="$(grep version -m 1 -i package.json | cut -d '"' -f4)"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
Reference in New Issue
Block a user