Skip to content

Commit 740ecfc

Browse files
author
Daryl Chymko
authored
Merge pull request #2 from aws-actions/master
Update from upstream
2 parents 38fdba9 + ee7a5be commit 740ecfc

File tree

7 files changed

+11754
-2982
lines changed

7 files changed

+11754
-2982
lines changed

.github/workflows/package.yml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
1+
name: Package
2+
3+
# When a pull request is opened/reopened or when the head branch of the pull request is updated.
14
on:
2-
push:
3-
branches:
4-
- master
5+
pull_request:
56

6-
name: Package
77

88
jobs:
9-
check:
9+
build:
1010
name: Package distribution file
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
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

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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.
44

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+
57
### [1.4.10](https://github.com/aws-actions/amazon-ecs-deploy-task-definition/compare/v1.4.9...v1.4.10) (2022-09-30)
68

79

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The task definition file can be updated prior to deployment with the new contain
8383
run: |
8484
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
8585
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
8787
8888
- name: Fill in the new image ID in the Amazon ECS task definition
8989
id: task-def

0 commit comments

Comments
 (0)