diff --git a/.github/workflows/monthly-copyright-update.yml b/.github/workflows/monthly-copyright-update.yml index d03d23f1..a45e0138 100644 --- a/.github/workflows/monthly-copyright-update.yml +++ b/.github/workflows/monthly-copyright-update.yml @@ -12,5 +12,5 @@ jobs: uses: 51Degrees/common-ci/.github/workflows/monthly-copyright-update.yml@main with: repo-name: ${{ github.event.repository.name }} - secrets: + secrets: token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.github/workflows/nightly-package-update.yml b/.github/workflows/nightly-package-update.yml index ffd430cc..440ba369 100644 --- a/.github/workflows/nightly-package-update.yml +++ b/.github/workflows/nightly-package-update.yml @@ -11,5 +11,5 @@ jobs: uses: 51Degrees/common-ci/.github/workflows/nightly-package-update.yml@main with: repo-name: ${{ github.event.repository.name }} - secrets: + secrets: token: ${{ secrets.ACCESS_TOKEN }} diff --git a/.github/workflows/nightly-pr-to-main.yml b/.github/workflows/nightly-prs-to-main.yml similarity index 84% rename from .github/workflows/nightly-pr-to-main.yml rename to .github/workflows/nightly-prs-to-main.yml index 4430e258..e433f7bf 100644 --- a/.github/workflows/nightly-pr-to-main.yml +++ b/.github/workflows/nightly-prs-to-main.yml @@ -1,10 +1,10 @@ -name: Nigthly PR to Main +name: Nightly PRs to Main on: workflow_dispatch: - schedule: - # * is a special character in YAML so quote this string - - cron: '0 1 * * *' + workflow_run: + workflows: [Nightly Submodule Update] + types: [completed] jobs: # Run the common workflow on each pull request @@ -12,6 +12,6 @@ jobs: uses: 51Degrees/common-ci/.github/workflows/nightly-prs-to-main.yml@main with: repo-name: ${{ github.event.repository.name }} - secrets: + secrets: token: ${{ secrets.ACCESS_TOKEN }} asset-keys: '{ "DeviceDetection": "${{ secrets.DEVICE_DETECTION_KEY }}","DeviceDetectionUrl": "${{ secrets.DEVICE_DETECTION_URL }}", "TestResourceKey": "${{ secrets.SUPER_RESOURCE_KEY}}","AcceptCHBrowserKey" : "${{ secrets.ACCEPTCH_BROWSER_KEY}}","AcceptCHHardwareKey" : "${{ secrets.ACCEPTCH_HARDWARE_KEY}}","AcceptCHPlatformKey" : "${{ secrets.ACCEPTCH_PLATFORM_KEY}}","AcceptCHNoneKey" : "${{ secrets.ACCEPTCH_NONE_KEY}}" }' diff --git a/.github/workflows/nightly-submodule-update.yml b/.github/workflows/nightly-submodule-update.yml index be32d86f..b2ec1118 100644 --- a/.github/workflows/nightly-submodule-update.yml +++ b/.github/workflows/nightly-submodule-update.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: schedule: # * is a special character in YAML so quote this string - - cron: '0 0 * * *' + - cron: '0 2 * * *' jobs: # Run the common workflow on each pull request @@ -12,5 +12,5 @@ jobs: uses: 51Degrees/common-ci/.github/workflows/nightly-submodule-update.yml@main with: repo-name: ${{ github.event.repository.name }} - secrets: + secrets: token: ${{ secrets.ACCESS_TOKEN }}