Daily #130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: "Daily" | |
| on: | |
| schedule: | |
| - cron: "00 10 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| check-last-run: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "octokit/request-action@v2.x" | |
| id: "check-last-run" | |
| env: | |
| GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| with: | |
| route: "GET /repos/${{github.repository}}/actions/workflows/daily.yml/runs?per_page=1&status=completed" | |
| outputs: | |
| last_sha: "${{ fromJson(steps.check-last-run.outputs.data).workflow_runs[0].head_sha }}" | |
| publish-maven-snapshot: | |
| needs: ["check-last-run"] | |
| if: "${{ needs.check-last-run.outputs.last_sha != github.sha }}" | |
| runs-on: "macos-latest" | |
| permissions: | |
| packages: "write" | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| with: | |
| fetch-depth: 0 | |
| - uses: "./.github/actions/setup" | |
| - run: "./gradlew :publishAllPublicationsToGitHubPackagesRepository" | |
| env: | |
| ORG_GRADLE_PROJECT_GitHubPackagesPassword: "${{ secrets.GITHUB_TOKEN }}" | |
| ORG_GRADLE_PROJECT_GitHubPackagesUsername: "${{ github.actor }}" | |
| publish-npm-snapshot: | |
| needs: ["check-last-run"] | |
| if: "${{ needs.check-last-run.outputs.last_sha != github.sha }}" | |
| runs-on: "macos-latest" | |
| permissions: | |
| packages: "write" | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| with: | |
| fetch-depth: 0 | |
| - uses: "./.github/actions/setup" | |
| - run: "./gradlew :publishJsPackageToGithubRegistry" | |
| env: | |
| ORG_GRADLE_PROJECT_GitHubPackagesPassword: "${{ secrets.GITHUB_TOKEN }}" | |
| dependency-submission: | |
| needs: ["check-last-run"] | |
| if: "${{ needs.check-last-run.outputs.last_sha != github.sha }}" | |
| runs-on: "ubuntu-latest" | |
| permissions: | |
| contents: "write" | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| - uses: "actions/setup-java@v4" | |
| with: | |
| distribution: "temurin" | |
| java-version: 21 | |
| - uses: "gradle/actions/dependency-submission@v4" | |
| with: | |
| build-scan-publish: true | |
| build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" | |
| build-scan-terms-of-use-agree: "yes" | |
| - uses: "advanced-security/cocoapods-dependency-submission-action@v1.1" |