Skip to content

Commit

Permalink
feat: added unique label feature (#20)
Browse files Browse the repository at this point in the history
* feat: added unique label feature

* test: added  coverage on main.ts

* Fix readme lint
  • Loading branch information
stephdotnet authored Sep 20, 2024
1 parent 2dcdfd1 commit 491c9bd
Show file tree
Hide file tree
Showing 27 changed files with 6,212 additions and 528 deletions.
4 changes: 4 additions & 0 deletions .actrc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-e __tests__/fixtures/event.json
-W .github/workflows/action-test.yml
--input token=
--input labels='["bug"]'
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
GITHUB_EVENT_NAME='pull_request'
GITHUB_EVENT_PATH='__tests__/fixtures/event.json'
INPUT_TOKEN=
INPUT_LABELS='["bug"]'
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
groups:
actions-minor:
update-types:
Expand All @@ -13,7 +13,7 @@ updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
interval: monthly
groups:
npm-development:
dependency-type: development
Expand Down
18 changes: 0 additions & 18 deletions .github/linters/.markdown-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/linters/.yaml-lint.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/action-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Integration

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
19 changes: 0 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,3 @@ jobs:
- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 2000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
49 changes: 0 additions & 49 deletions .github/workflows/linter.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Semantic Release

on:
push:
branches:
- main

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
release:
permissions:
contents: write # to create a release (ncipollo/release-action)

runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: main
noVersionBumpBehavior: 'silent'

- name: Create Release
if: steps.semver.outputs.nextStrict != ''
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: true
draft: false
makeLatest: true
tag: ${{ steps.semver.outputs.nextStrict }}
name: ${{ steps.semver.outputs.nextStrict }}
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ __tests__/runner/*
.idea
.vscode
*.code-workspace

# Act files
.actrc
Loading

0 comments on commit 491c9bd

Please sign in to comment.