Skip to content
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
26 changes: 21 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,33 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
statics:
name: Static checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
- run: pipx run pre-commit run --all-files --show-diff-on-failure

# ponytail: guard-path smoke test only (no token/network); add a real
# sync test against a scratch fork if the push logic ever changes.
smoke:
name: Action wiring smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Run without upstream_repository (expected to fail)
id: run
continue-on-error: true
uses: ./
with:
github_token: dummy
upstream_repository: ""
- name: Assert the action failed on missing input
run: '[ "${{ steps.run.outcome }}" = "failure" ]'
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/thlorenz/doctoc.git
rev: v2.1.0
rev: v2.5.0
hooks:
- id: doctoc
name: Add TOC for md files
Expand Down
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@ inputs:
description: 'Determines if --tags is used'
required: false
runs:
using: 'node16'
main: 'start.js'
using: 'composite'
steps:
- run: "${GITHUB_ACTION_PATH}/start.sh"
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_UPSTREAM_REPOSITORY: ${{ inputs.upstream_repository }}
INPUT_TARGET_REPOSITORY: ${{ inputs.target_repository }}
INPUT_UPSTREAM_BRANCH: ${{ inputs.upstream_branch }}
INPUT_TARGET_BRANCH: ${{ inputs.target_branch }}
INPUT_FORCE: ${{ inputs.force }}
INPUT_TAGS: ${{ inputs.tags }}
26 changes: 0 additions & 26 deletions start.js

This file was deleted.

Loading