Skip to content

Commit 651fd90

Browse files
authored
[internal] Update GitHub Actions workflow files (#141)
1 parent dc26c55 commit 651fd90

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
324324
aws-region: us-east-2
325325
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
326-
role-duration-seconds: 3600
326+
role-duration-seconds: 7200
327327
role-external-id: upload-pulumi-release
328328
role-session-name: ${{ env.PROVIDER }}@githubActions
329329
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }}
@@ -536,7 +536,7 @@ name: main
536536
branches:
537537
- main
538538
paths-ignore:
539-
- '*.md'
539+
- '**.md'
540540
tags-ignore:
541541
- v*
542542
- sdk/*

.github/workflows/master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
324324
aws-region: us-east-2
325325
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
326-
role-duration-seconds: 3600
326+
role-duration-seconds: 7200
327327
role-external-id: upload-pulumi-release
328328
role-session-name: ${{ env.PROVIDER }}@githubActions
329329
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }}
@@ -536,7 +536,7 @@ name: master
536536
branches:
537537
- master
538538
paths-ignore:
539-
- '*.md'
539+
- '**.md'
540540
tags-ignore:
541541
- v*
542542
- sdk/*

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
270270
aws-region: us-east-2
271271
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272-
role-duration-seconds: 3600
272+
role-duration-seconds: 7200
273273
role-external-id: upload-pulumi-release
274274
role-session-name: ${{ env.PROVIDER }}@githubActions
275275
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ jobs:
282282
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
283283
aws-region: us-east-2
284284
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
285-
role-duration-seconds: 3600
285+
role-duration-seconds: 7200
286286
role-external-id: upload-pulumi-release
287287
role-session-name: ${{ env.PROVIDER }}@githubActions
288288
role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }}

.github/workflows/run-acceptance-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ jobs:
107107
name: comment-notification
108108
runs-on: ubuntu-latest
109109
steps:
110-
- id: var
110+
- id: run-url
111111
name: Create URL to the run output
112112
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
113113
- name: Update with Result
114114
uses: peter-evans/create-or-update-comment@v1
115115
with:
116-
body: Please view the PR build - ${{ steps.vars.outputs.run-url }}
116+
body: 'Please view the PR build: ${{ steps.run-url.outputs.run-url }}'
117117
issue-number: ${{ github.event.client_payload.github.payload.issue.number
118118
}}
119119
repository: ${{ github.event.client_payload.github.payload.repository.full_name

.github/workflows/update-upstream-provider.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
name: update-upstream_provider
2222
runs-on: ubuntu-latest
2323
steps:
24+
- id: run-url
25+
name: Create URL to the run output
26+
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
2427
- name: Checkout Repo
2528
uses: actions/checkout@v2
2629
- name: Unshallow clone for tags
@@ -99,6 +102,17 @@ jobs:
99102
title: Update ${{ env.UPSTREAM_PROVIDER_REPO }} to v${{ github.event.inputs.version
100103
}}
101104
token: ${{ secrets.PULUMI_BOT_TOKEN }}
105+
- if: ${{ failure() && github.event.inputs.linked_issue_number }}
106+
name: Comment on failed attempt
107+
uses: jungwinter/comment@v1
108+
with:
109+
body: |-
110+
Failed to automatically update upstream provider (probably beacuse of new resources or data sources, which must be mapped manually).
111+
112+
For more details, see: ${{ steps.run-url.outputs.run-url }}
113+
issue_number: ${{ github.event.inputs.linked_issue_number }}
114+
token: ${{ secrets.PULUMI_BOT_TOKEN }}
115+
type: create
102116
strategy:
103117
fail-fast: true
104118
matrix:

0 commit comments

Comments
 (0)