Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Check for new tags

Check for new tags #5637

name:Check for new tags
on:
schedule:
-cron:'22 1,3,5,8,18,23 * * *'
workflow_dispatch:
jobs:
check-new-tags:
runs-on:ubuntu-latest
steps:
-uses:actions/github-script@v6
name:Check for new releases in signalapp/Signal-Desktop
with:
script:|
const latestRelease = await github.rest.repos.getLatestRelease({
owner: 'signalapp',
repo: 'Signal-Desktop'
})
const latestTag = latestRelease.data.tag_name
core.info(`Latest tag on signalapp/Signal-Desktop is ${latestTag}`)
// Check if this tag also exists on dennisameling/Signal-Desktop already
try {
const latestReleaseDennis = await github.rest.repos.getReleaseByTag({
owner: 'dennisameling',
repo: 'Signal-Desktop',
tag: latestTag
})
core.info(`Release ${latestTag} already exists in dennisameling/Signal-Desktop. Nothing to do.`)
} catch (e) {
if (e.status && e.status === 404) {
core.info(`Release for Signal version ${latestTag} doesn't seem to exist yet on dennisameling/Signal-Desktop. Triggering a release.`)
await github.rest.actions.createWorkflowDispatch({
owner: 'dennisameling',
repo: 'signal-desktop-automation',
workflow_id: 'release.yml',
ref: 'main',
inputs: {
release: 'true',
ref_to_build: latestTag
}
})
core.info('Successfully created GitHub Actions workflow dispatch. Watch the CI run at https://github.com/dennisameling/signal-desktop-automation/actions/workflows/release.yml')
} else {
core.setFailed(`Unknown error while getting release by tag: ${e.message}`)
}
}

[8]ページ先頭

©2009-2025 Movatter.jp