Skip to content

Commit c997ae8

Browse files
authored
[internal] Update GitHub Actions workflow files (#63)
1 parent 85cfdbb commit c997ae8

File tree

2 files changed

+44
-15
lines changed

2 files changed

+44
-15
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
jobs:
2+
remove-old-artifacts:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- name: Remove old artifacts
6+
uses: c-hive/gha-remove-artifacts@v1
7+
with:
8+
age: 1 month
9+
skip-tags: true
10+
name: cleanup
11+
on:
12+
schedule:
13+
- cron: 0 1 * * *
Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
1-
name: Command Dispatch for testing
2-
on:
3-
issue_comment:
4-
types: [created, edited]
5-
1+
env:
2+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5+
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
6+
PROVIDER: command
7+
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
8+
PULUMI_API: https://api.pulumi-staging.io
9+
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
10+
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
11+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
12+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
13+
TRAVIS_OS_NAME: linux
614
jobs:
715
command-dispatch-for-testing:
16+
if: ${{ github.event.issue.pull_request }}
17+
name: command-dispatch-for-testing
818
runs-on: ubuntu-latest
919
steps:
10-
- uses: actions/checkout@v2
11-
- name: Run Build
12-
uses: peter-evans/slash-command-dispatch@v2
13-
with:
14-
token: ${{ secrets.EVENT_PAT }}
15-
reaction-token: ${{ secrets.GITHUB_TOKEN }}
16-
commands: run-acceptance-tests
17-
permission: write
18-
issue-type: pull-request
19-
repository: pulumi/pulumi-command
20+
- name: Checkout Repo
21+
uses: actions/checkout@v2
22+
- uses: peter-evans/slash-command-dispatch@v2
23+
with:
24+
commands: run-acceptance-tests
25+
issue-type: pull-request
26+
permission: write
27+
reaction-token: ${{ secrets.GITHUB_TOKEN }}
28+
repository: pulumi/pulumi-command
29+
token: ${{ secrets.PULUMI_BOT_TOKEN }}
30+
name: command-dispatch
31+
on:
32+
issue_comment:
33+
types:
34+
- created
35+
- edited

0 commit comments

Comments
 (0)