Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump softprops/action-gh-release from 1 to 2 #162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
os: ["ubuntu", "macos", "windows"]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
- name: Setup Kitten
uses: ./
- name: Run script
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: changelog
uses: simbo/changes-since-last-release-action@v1
- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: ${{ github.ref_name }}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ repos:
hooks:
- id: detect-secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.1
rev: v8.18.2
hooks:
- id: gitleaks
# Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
rev: v0.39.0
hooks:
- id: markdownlint-fix
stages: ["commit"]
# Yaml
- repo: https://github.com/adrienverge/yamllint
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
stages: ["push"]
# GitHub Actions
- repo: https://github.com/rhysd/actionlint
rev: v1.6.26
rev: v1.6.27
hooks:
- id: actionlint
args: ["-pyflakes="]
Expand All @@ -38,7 +38,7 @@ repos:
- id: prettier
stages: ["commit"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-json
Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ runs:
run: |
KITTEN_EXEC_NAME=kitten
if [ "${RUNNER_OS}" = "Windows" ]; then
KITTEN_EXEC_NAME="$KITTEN_EXEC_NAME.exe"
KITTEN_EXEC_NAME="${KITTEN_EXEC_NAME}.exe"
fi
echo "KITTEN_EXEC_NAME=$KITTEN_EXEC_NAME" >> "$GITHUB_OUTPUT"
KITTEN_INSTALLED=$(if command -v $KITTEN_EXEC_NAME >/dev/null 2>&1; then echo true; else echo false; fi)
echo "KITTEN_EXEC_NAME=${KITTEN_EXEC_NAME}" >> "$GITHUB_OUTPUT"
KITTEN_INSTALLED=$(if command -v "${KITTEN_EXEC_NAME}" >/dev/null 2>&1; then echo true; else echo false; fi)
echo "KITTEN_INSTALLED=$KITTEN_INSTALLED" >> "$GITHUB_OUTPUT"
mkdir -p "$RUNNER_TEMP/kitten"
echo "KITTEN_PATH=$RUNNER_TEMP/kitten" >> "$GITHUB_OUTPUT"
echo "KITTEN_PATH=${RUNNER_TEMP}/kitten" >> "$GITHUB_OUTPUT"
shell: sh
- name: Clone Kitten repository
if: ${{ steps.info.outputs.KITTEN_INSTALLED == 'false' }}
env:
KITTEN_VERSION: 2bbc264d7f05c4a7d7b35d06773d1ab2f0623193 # pragma: allowlist secret
run: |
git clone https://github.com/evincarofautumn/kitten.git "${{ steps.info.outputs.KITTEN_PATH }}"
git reset --hard $KITTEN_VERSION
git reset --hard "${KITTEN_VERSION}"
shell: sh
working-directory: ${{ steps.info.outputs.KITTEN_PATH }}
- name: Build Kitten
Expand All @@ -41,6 +41,6 @@ runs:
if: ${{ steps.info.outputs.KITTEN_INSTALLED == 'false' }}
run: |
exe_path=$(find "${{ steps.info.outputs.KITTEN_PATH }}/.stack-work/install" -name "${{ steps.info.outputs.KITTEN_EXEC_NAME }}")
bin_path=$(dirname $exe_path)
echo "$bin_path" >> "$GITHUB_PATH"
bin_path=$(dirname "${exe_path}")
echo "${bin_path}" >> "$GITHUB_PATH"
shell: sh