Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a00b95a1d | |||
| 1b0d4e0e75 | |||
| 6b661fea92 | |||
| 0ff1bb0945 | |||
| c0a49cc98b | |||
| 8e6cdab5dc | |||
| 306cafc4e9 |
8
.github/renovate.json
vendored
8
.github/renovate.json
vendored
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": [
|
|
||||||
"config:base"
|
|
||||||
],
|
|
||||||
"labels": [
|
|
||||||
"bump:patch"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
45
.github/workflows/depup.yml
vendored
45
.github/workflows/depup.yml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: depup
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '14 14 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
push: # for testing
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
reviewdog:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./with-pr
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: REVIEWDOG_VERSION
|
|
||||||
repo: reviewdog/reviewdog
|
|
||||||
labels: demo
|
|
||||||
|
|
||||||
redpen:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./with-pr
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: REDPEN_VERSION
|
|
||||||
repo: redpen-cc/redpen
|
|
||||||
tag_prefix: redpen-
|
|
||||||
labels: demo
|
|
||||||
|
|
||||||
themis:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./with-pr
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: THEMIS_VERSION
|
|
||||||
repo: thinca/vim-themis
|
|
||||||
tag: true
|
|
||||||
labels: demo
|
|
||||||
13
.github/workflows/dockerimage.yml
vendored
13
.github/workflows/dockerimage.yml
vendored
@@ -1,13 +0,0 @@
|
|||||||
name: Docker Image CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)
|
|
||||||
55
.github/workflows/release.yml
vendored
55
.github/workflows/release.yml
vendored
@@ -1,55 +0,0 @@
|
|||||||
name: release
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
tags:
|
|
||||||
- 'v*.*.*'
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- labeled
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
if: github.event.action != 'labeled'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# Bump version on merging Pull Requests with specific labels.
|
|
||||||
# (bump:major,bump:minor,bump:patch)
|
|
||||||
- id: bumpr
|
|
||||||
if: "!startsWith(github.ref, 'refs/tags/')"
|
|
||||||
uses: haya14busa/action-bumpr@v1
|
|
||||||
|
|
||||||
# Update corresponding major and minor tag.
|
|
||||||
# e.g. Update v1 and v1.2 when releasing v1.2.3
|
|
||||||
- uses: haya14busa/action-update-semver@v1
|
|
||||||
if: "!steps.bumpr.outputs.skip"
|
|
||||||
with:
|
|
||||||
tag: ${{ steps.bumpr.outputs.next_version }}
|
|
||||||
|
|
||||||
# Get tag name.
|
|
||||||
- id: tag
|
|
||||||
uses: haya14busa/action-cond@v1
|
|
||||||
with:
|
|
||||||
cond: "${{ startsWith(github.ref, 'refs/tags/') }}"
|
|
||||||
if_true: ${{ github.ref }}
|
|
||||||
if_false: ${{ steps.bumpr.outputs.next_version }}
|
|
||||||
|
|
||||||
# Create release
|
|
||||||
- if: "steps.tag.outputs.value != ''"
|
|
||||||
env:
|
|
||||||
TAG_NAME: ${{ steps.tag.outputs.value }}
|
|
||||||
CURRENT: ${{ steps.bumpr.outputs.current_version }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
gh release create "${TAG_NAME}" -t "Release ${TAG_NAME/refs\/tags\//}" --generate-notes --notes-start-tag "${CURRENT}"
|
|
||||||
|
|
||||||
release-check:
|
|
||||||
if: github.event.action == 'labeled'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Post bumpr status comment
|
|
||||||
uses: haya14busa/action-bumpr@v1
|
|
||||||
40
.github/workflows/reviewdog.yml
vendored
40
.github/workflows/reviewdog.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: reviewdog
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
shellcheck:
|
|
||||||
name: runner / shellcheck
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: haya14busa/action-cond@v1
|
|
||||||
id: reporter
|
|
||||||
with:
|
|
||||||
cond: ${{ github.event_name == 'pull_request' }}
|
|
||||||
if_true: "github-pr-review"
|
|
||||||
if_false: "github-check"
|
|
||||||
- uses: reviewdog/action-shellcheck@v1
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.github_token }}
|
|
||||||
reporter: ${{ steps.reporter.outputs.value }}
|
|
||||||
level: warning
|
|
||||||
|
|
||||||
hadolint:
|
|
||||||
name: runner / hadolint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: haya14busa/action-cond@v1
|
|
||||||
id: reporter
|
|
||||||
with:
|
|
||||||
cond: ${{ github.event_name == 'pull_request' }}
|
|
||||||
if_true: "github-pr-review"
|
|
||||||
if_false: "github-check"
|
|
||||||
- uses: reviewdog/action-hadolint@v1
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.github_token }}
|
|
||||||
reporter: ${{ steps.reporter.outputs.value }}
|
|
||||||
level: warning
|
|
||||||
78
.github/workflows/test.yml
vendored
78
.github/workflows/test.yml
vendored
@@ -1,78 +0,0 @@
|
|||||||
name: Test
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: REVIEWDOG_VERSION
|
|
||||||
repo: reviewdog/reviewdog
|
|
||||||
|
|
||||||
- name: Check diff
|
|
||||||
run: git diff
|
|
||||||
|
|
||||||
needless_prefix:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: REDPEN_VERSION
|
|
||||||
repo: redpen-cc/redpen
|
|
||||||
|
|
||||||
- name: Check diff
|
|
||||||
run: git diff
|
|
||||||
|
|
||||||
not_semver:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: TMUX_VERSION
|
|
||||||
repo: tmux/tmux
|
|
||||||
|
|
||||||
- name: Check diff
|
|
||||||
run: git diff
|
|
||||||
|
|
||||||
quoted_version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: POETRY_VERSION
|
|
||||||
repo: python-poetry/poetry
|
|
||||||
|
|
||||||
- name: Check diff
|
|
||||||
run: git diff
|
|
||||||
|
|
||||||
tagged_version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./
|
|
||||||
id: depup
|
|
||||||
with:
|
|
||||||
file: testdata/testfile
|
|
||||||
version_name: THEMIS_VERSION
|
|
||||||
repo: thinca/vim-themis
|
|
||||||
tag: true
|
|
||||||
|
|
||||||
- name: Check diff
|
|
||||||
run: git diff
|
|
||||||
@@ -33,7 +33,7 @@ list_versions() {
|
|||||||
if [ "${INPUT_TAG:-false}" = "true" ]; then
|
if [ "${INPUT_TAG:-false}" = "true" ]; then
|
||||||
git ls-remote -q --tags "https://github.com/${REPO}.git" | awk '{ print $2 }'
|
git ls-remote -q --tags "https://github.com/${REPO}.git" | awk '{ print $2 }'
|
||||||
else
|
else
|
||||||
list_releases | jq -r '.[] | .tag_name'
|
list_releases | jq -r '.[] | select(.prerelease|not) | .tag_name'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user