|
9 | 9 | - main |
10 | 10 |
|
11 | 11 | permissions: |
12 | | - contents: write # Necessary for accessing and modifying repository content |
13 | | - pull-requests: write # Necessary for interacting with pull requests |
14 | | - actions: write # Necessary for triggering other workflows |
| 12 | + contents: write # Necessary for accessing and modifying repository content |
| 13 | + pull-requests: write # Necessary for interacting with pull requests |
| 14 | + actions: write # Necessary for triggering other workflows |
15 | 15 |
|
16 | 16 | jobs: |
17 | 17 | tag-discussion: |
|
21 | 21 | - name: Checkout Code |
22 | 22 | uses: actions/checkout@v3 |
23 | 23 | with: |
24 | | - ref: ${{ github.event.pull_request.base.ref }} # Checkout the base branch (target repository) |
25 | | - repository: ${{ github.event.pull_request.base.repo.full_name }} # Checkout from the target repo |
| 24 | + ref: ${{ github.event.pull_request.base.ref }} # Checkout the base branch (target repository) |
| 25 | + repository: ${{ github.event.pull_request.base.repo.full_name }} # Checkout from the target repo |
26 | 26 |
|
27 | 27 | - name: Calculate new versions |
28 | 28 | id: calculate_versions |
@@ -165,15 +165,15 @@ jobs: |
165 | 165 | git push origin ${{ steps.determine_version.outputs.new_version }} |
166 | 166 | - name: Trigger Release Workflow |
167 | 167 | run: | |
168 | | - curl -X POST \ |
169 | | - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ |
170 | | - -H "Accept: application/vnd.github.everest-preview+json" \ |
171 | | - https://api.github.com/repos/${{ github.repository }}/actions/workflows/release.yaml/dispatches \ |
172 | | - -d '{"ref":"main", "inputs":{"tag_name":"${{ steps.determine_version.outputs.new_version }}"}}' |
| 168 | + curl -X POST \ |
| 169 | + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ |
| 170 | + -H "Accept: application/vnd.github.everest-preview+json" \ |
| 171 | + https://api.github.com/repos/${{ github.repository }}/actions/workflows/release.yaml/dispatches \ |
| 172 | + -d '{"ref":"main", "inputs":{"tag_name":"${{ steps.determine_version.outputs.new_version }}"}}' |
173 | 173 | - name: Trigger Publish Workflow |
174 | 174 | run: | |
175 | | - curl -X POST \ |
176 | | - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ |
177 | | - -H "Accept: application/vnd.github.everest-preview+json" \ |
178 | | - https://api.github.com/repos/${{ github.repository }}/actions/workflows/publish.yaml/dispatches \ |
179 | | - -d '{"ref":"main", "inputs":{"tag_name":"${{ steps.determine_version.outputs.new_version }}"}}' |
| 175 | + curl -X POST \ |
| 176 | + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ |
| 177 | + -H "Accept: application/vnd.github.everest-preview+json" \ |
| 178 | + https://api.github.com/repos/${{ github.repository }}/actions/workflows/publish.yaml/dispatches \ |
| 179 | + -d '{"ref":"main", "inputs":{"tag_name":"${{ steps.determine_version.outputs.new_version }}"}}' |
0 commit comments