File tree Expand file tree Collapse file tree 7 files changed +11754
-2982
lines changed Expand file tree Collapse file tree 7 files changed +11754
-2982
lines changed Original file line number Diff line number Diff line change
1
+ name : Package
2
+
3
+ # When a pull request is opened/reopened or when the head branch of the pull request is updated.
1
4
on :
2
- push :
3
- branches :
4
- - master
5
+ pull_request :
5
6
6
- name : Package
7
7
8
8
jobs :
9
- check :
9
+ build :
10
10
name : Package distribution file
11
11
runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
12
14
steps :
13
- - name : Checkout
14
- uses : actions/checkout@v2
15
- with :
16
- ref : master
17
- - name : Package
18
- run : |
19
- npm ci
20
- npm test
21
- npm run package
22
- - name : Commit
23
- run : |
24
- git config --global user.name "GitHub Actions"
25
- git add dist/
26
- git commit -m "chore: Update dist" || echo "No changes to commit"
27
- git push origin HEAD:master
15
+ - name : Init a git repo
16
+ uses : actions/checkout@v2
17
+ - name : Checkout PR
18
+ env :
19
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+ run : gh pr checkout ${{ github.event.pull_request.number }}
21
+ - name : Package
22
+ run : |
23
+ npm ci
24
+ npm test
25
+ npm run package
26
+ - name : Commit to PR
27
+ if : github.actor == 'dependabot[bot]'
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ run : |
31
+ git config --global user.name "GitHub Actions"
32
+ git add dist/
33
+ git commit -m "chore: Update dist" || echo "No changes to commit"
34
+ git push
35
+ - name : Check git diff
36
+ if : github.actor != 'dependabot[bot]'
37
+ run : |
38
+ git diff --exit-code dist/index.js
Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file. See [ standard-version] ( https://github.com/conventional-changelog/standard-version ) for commit guidelines.
4
4
5
+ ### [ 1.4.11] ( https://github.com/aws-actions/amazon-ecs-deploy-task-definition/compare/v1.4.10...v1.4.11 ) (2023-01-04)
6
+
5
7
### [ 1.4.10] ( https://github.com/aws-actions/amazon-ecs-deploy-task-definition/compare/v1.4.9...v1.4.10 ) (2022-09-30)
6
8
7
9
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ The task definition file can be updated prior to deployment with the new contain
83
83
run: |
84
84
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
85
85
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
86
- echo "::set-output name= image:: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
86
+ echo "image= $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
87
87
88
88
- name: Fill in the new image ID in the Amazon ECS task definition
89
89
id: task-def
You can’t perform that action at this time.
0 commit comments