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
9 changes: 5 additions & 4 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ name: "PR Labeler"
on:
pull_request_target:

permissions:
pull-requests: write

jobs:
labeler:
name: "Labeler"
runs-on: ubuntu-latest
timeout-minutes: 5

permissions:
pull-requests: write
issues: write

steps:
- name: "Checkout Configs"
uses: actions/checkout@v5
Expand All @@ -36,7 +37,7 @@ jobs:

- name: "Label Creator"
continue-on-error: true
uses: cssnr/label-creator-action@master
uses: cssnr/label-creator-action@v1
with:
file: .configs/labels/labels.yaml

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
pull-requests: write

jobs:
lint:
name: "Lint"
Expand Down Expand Up @@ -67,9 +70,14 @@ jobs:
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=

- name: "Verify action.yml"
if: ${{ !cancelled() }}
run: |
yq -e '.runs.main | test("^dist/")' action.yml

- name: "Check Build Action"
if: ${{ !cancelled() }}
uses: cssnr/check-build-action@master
uses: cssnr/check-build-action@v1

- name: "ESLint Annotate"
if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
Expand Down
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,53 @@ If you would like to submit a PR, please review the [CONTRIBUTING.md](#contribut
Additionally, you can support other GitHub Actions I have published:

- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)
- [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
- [Portainer Stack Deploy Action](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)
- [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)
- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)
- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)
- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)
- [JSON Key Value Check Action](https://github.com/cssnr/json-key-value-check-action?tab=readme-ov-file#readme)
- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)
- [Cloudflare Purge Cache Action](https://github.com/cssnr/cloudflare-purge-cache-action?tab=readme-ov-file#readme)
- [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action?tab=readme-ov-file#readme)
- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)
- [Package Changelog Action](https://github.com/cssnr/package-changelog-action?tab=readme-ov-file#readme)
- [NPM Outdated Check Action](https://github.com/cssnr/npm-outdated-action?tab=readme-ov-file#readme)
- [Label Creator Action](https://github.com/cssnr/label-creator-action?tab=readme-ov-file#readme)
- [Algolia Crawler Action](https://github.com/cssnr/algolia-crawler-action?tab=readme-ov-file#readme)
- [Upload Release Action](https://github.com/cssnr/upload-release-action?tab=readme-ov-file#readme)
- [Check Build Action](https://github.com/cssnr/check-build-action?tab=readme-ov-file#readme)
- [Web Request Action](https://github.com/cssnr/web-request-action?tab=readme-ov-file#readme)
- [Get Commit Action](https://github.com/cssnr/get-commit-action?tab=readme-ov-file#readme)

<details><summary>❔ Unpublished Actions</summary>

These actions are not published on the Marketplace, but may be useful.

- [cssnr/draft-release-action](https://github.com/cssnr/draft-release-action?tab=readme-ov-file#readme) - Keep a draft release ready to publish.
- [cssnr/env-json-action](https://github.com/cssnr/env-json-action?tab=readme-ov-file#readme) - Convert env file to json or vice versa.
- [cssnr/push-artifacts-action](https://github.com/cssnr/push-artifacts-action?tab=readme-ov-file#readme) - Sync files to a remote host with rsync.
- [smashedr/update-release-notes-action](https://github.com/smashedr/update-release-notes-action?tab=readme-ov-file#readme) - Update release notes.
- [smashedr/combine-release-notes-action](https://github.com/smashedr/combine-release-notes-action?tab=readme-ov-file#readme) - Combine release notes.

---

</details>

<details><summary>📝 Template Actions</summary>

These are basic action templates that I use for creating new actions.

- [js-test-action](https://github.com/smashedr/js-test-action?tab=readme-ov-file#readme) - JavaScript
- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Python
- [ts-test-action](https://github.com/smashedr/ts-test-action?tab=readme-ov-file#readme) - TypeScript
- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image

Note: The `docker-test-action` builds, runs and pushes images to [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).

---

</details>

For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)
9 changes: 7 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34567,6 +34567,10 @@ const script_id = '<!-- cssnr/draft-release-action -->'
core.startGroup('Response')
console.log(response)
core.endGroup() // Response
if (!response) {
console.log('Set Neutral is not yet implemented so exiting with success.')
return core.info(`⚠️ \u001b[32;1mNo Releases to Process`)
}

// Outputs
core.info('📩 Setting Outputs')
Expand Down Expand Up @@ -34595,7 +34599,7 @@ const script_id = '<!-- cssnr/draft-release-action -->'
/**
* Process Release
* @param {Inputs} inputs
* @return {Promise<Object>}
* @return {Promise<Object|undefined>}
*/
async function processRelease(inputs) {
const octokit = github.getOctokit(inputs.token)
Expand All @@ -34607,7 +34611,8 @@ async function processRelease(inputs) {
// console.log('releases:', releases)
if (!releases?.data?.length) {
console.log('releases:', releases)
throw new Error('No previous release found. Create one first...')
core.error('No previous release found. Create one first...')
return
}

let [latest, previous] = releases.data
Expand Down
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const script_id = '<!-- cssnr/draft-release-action -->'
core.startGroup('Response')
console.log(response)
core.endGroup() // Response
if (!response) {
console.log('Set Neutral is not yet implemented so exiting with success.')
return core.info(`⚠️ \u001b[32;1mNo Releases to Process`)
}

// Outputs
core.info('📩 Setting Outputs')
Expand Down Expand Up @@ -63,7 +67,7 @@ const script_id = '<!-- cssnr/draft-release-action -->'
/**
* Process Release
* @param {Inputs} inputs
* @return {Promise<Object>}
* @return {Promise<Object|undefined>}
*/
async function processRelease(inputs) {
const octokit = github.getOctokit(inputs.token)
Expand All @@ -75,7 +79,8 @@ async function processRelease(inputs) {
// console.log('releases:', releases)
if (!releases?.data?.length) {
console.log('releases:', releases)
throw new Error('No previous release found. Create one first...')
core.error('No previous release found. Create one first...')
return
}

let [latest, previous] = releases.data
Expand Down