Skip to content

Commit d9027d6

Browse files
committed
Add reusable workflow
0 parents  commit d9027d6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/_deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# A reusable workflow that deploys the contents of a repository to a target environment.
2+
3+
name: Deploy
4+
5+
permissions:
6+
id-token: write
7+
contents: read
8+
9+
on:
10+
workflow_call:
11+
inputs:
12+
environment:
13+
type: string
14+
required: true
15+
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
environment: ${{ inputs.environment }}
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
25+
- name: Deploy
26+
run: |
27+
echo "Deploying to ${{ inputs.environment }} environment"
28+
echo "${{ vars.MESSAGE }}"

0 commit comments

Comments
 (0)