Pop-up dictionary browser extension for language learning. Successor to Yomichan. (PERSONAL FORK)
1# This workflow is used to delay the execution of workflows that need to use an environment.
2# The delay occurs thanks to the usage of the 12hoursDelay environment.
3#
4# It is used to delay the execution of the publish-chrome(-development) workflow to avoid the
5# Google Web Store rejecting the upload of a new version because it is still in review.
6#
7# The reason we can't directly do a workflow-dispatch is because the 12hoursDelay
8# environment does not include our secrets, so instead we chain two workflow-dispatch calls.
9
10name: delay
11on:
12 workflow_dispatch:
13 inputs:
14 workflow:
15 description: "Workflow name"
16 required: true
17 attemptNumber:
18 description: "Attempt number"
19 required: false
20 default: "1"
21 maxAttempts:
22 description: "Max attempts"
23 required: false
24 default: "10"
25permissions: {}
26jobs:
27 delay:
28 runs-on: ubuntu-latest
29 environment: 12hoursDelay
30 permissions:
31 actions: write
32 steps:
33 - name: Start the next attempt
34 uses: aurelien-baudet/workflow-dispatch@3133c5d135c7dbe4be4f9793872b6ef331b53bc7 # pin@v2
35 with:
36 workflow: ${{ github.event.inputs.workflow }}
37 token: ${{ secrets.GITHUB_TOKEN }}
38 wait-for-completion: false
39 inputs: |
40 {
41 "attemptNumber": "${{ github.event.inputs.attemptNumber }}",
42 "maxAttempts": "${{ github.event.inputs.maxAttempts }}"
43 }