|
61 | 61 | - uses: actions/checkout@v3 |
62 | 62 | - name: Build the Docker image |
63 | 63 | run: make establish_config && docker build -f Dockerfile . -t techsupportbot:$(date +%s) |
64 | | - |
65 | | - close_pyTest: |
66 | | - if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' |
67 | | - runs-on: ubuntu-latest |
68 | | - needs: |
69 | | - - codeValidation |
70 | | - permissions: |
71 | | - contents: write |
72 | | - pull-requests: write |
73 | | - steps: |
74 | | - - name: Dependabot metadata |
75 | | - id: dependabot-metadata |
76 | | - uses: dependabot/fetch-metadata@v2 |
77 | | - with: |
78 | | - github-token: "${{ secrets.GITHUB_TOKEN }}" |
79 | | - - name: Merge PR |
80 | | - if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'pytest' |
81 | | - run: gh pr merge --auto --merge "$PR_URL" |
82 | | - env: |
83 | | - PR_URL: ${{github.event.pull_request.html_url}} |
84 | | - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
85 | | - |
86 | | - close_pyLint: |
87 | | - if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' |
88 | | - runs-on: ubuntu-latest |
89 | | - needs: |
90 | | - - codeValidation |
91 | | - permissions: |
92 | | - contents: write |
93 | | - pull-requests: write |
94 | | - steps: |
95 | | - - name: Dependabot metadata |
96 | | - id: dependabot-metadata |
97 | | - uses: dependabot/fetch-metadata@v2 |
98 | | - with: |
99 | | - github-token: "${{ secrets.GITHUB_TOKEN }}" |
100 | | - - name: Merge PR |
101 | | - if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'pylint' |
102 | | - run: gh pr merge --auto --merge "$PR_URL" |
103 | | - env: |
104 | | - PR_URL: ${{github.event.pull_request.html_url}} |
105 | | - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
106 | | - |
107 | | - close_flake8: |
108 | | - if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' |
109 | | - runs-on: ubuntu-latest |
110 | | - needs: |
111 | | - - codeValidation |
112 | | - permissions: |
113 | | - contents: write |
114 | | - pull-requests: write |
115 | | - steps: |
116 | | - - name: Dependabot metadata |
117 | | - id: dependabot-metadata |
118 | | - uses: dependabot/fetch-metadata@v2 |
119 | | - with: |
120 | | - github-token: "${{ secrets.GITHUB_TOKEN }}" |
121 | | - - name: Merge PR |
122 | | - if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'flake8' |
123 | | - run: gh pr merge --auto --merge "$PR_URL" |
124 | | - env: |
125 | | - PR_URL: ${{github.event.pull_request.html_url}} |
126 | | - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
127 | | - |
128 | | - close_isort: |
129 | | - if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' |
130 | | - runs-on: ubuntu-latest |
131 | | - needs: |
132 | | - - codeValidation |
133 | | - permissions: |
134 | | - contents: write |
135 | | - pull-requests: write |
136 | | - steps: |
137 | | - - name: Dependabot metadata |
138 | | - id: dependabot-metadata |
139 | | - uses: dependabot/fetch-metadata@v2 |
140 | | - with: |
141 | | - github-token: "${{ secrets.GITHUB_TOKEN }}" |
142 | | - - name: Merge PR |
143 | | - if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' && steps.dependabot-metadata.outputs.dependency-names == 'isort' |
144 | | - run: gh pr merge --auto --merge "$PR_URL" |
145 | | - env: |
146 | | - PR_URL: ${{github.event.pull_request.html_url}} |
147 | | - GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
0 commit comments