Skip to content

Commit ad37ae0

Browse files
committed
Update package.json.
1 parent 2c9f52a commit ad37ae0

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ jobs:
4141
4242
- name: Compose Release Tag
4343
id: tags
44-
run: |
45-
#if [[ ${{ github.event_name }} == "pull_request" ]]; then
46-
# SHA=${{ github.event.pull_request.head.sha }}
47-
#else
48-
# SHA=$(echo "$GITHUB_CONTEXT" | jq '.event.commits[].id' | tail -2 | head -1 | sed 's/\"//g')
49-
#fi
50-
SHA=${{ github.sha }}
51-
52-
DATE=$(git show -s --format=%ad --date=format:'%Y%m%d' $SHA)
53-
DEV_TAG=dev-$DATE-${SHA::7}
44+
run: |
45+
TIMESTAMP=$(git show -s --format=%at $SHA)
46+
DEV_TAG=dev-$TIMESTAMP
5447
5548
BASE_RELEASE_TAG="v0."
5649
REPO=$(echo "$GITHUB_CONTEXT" | jq -r '.repository')

src/monitor.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const core = require('@actions/core');
22

3-
// TODO: rename this method.
4-
async function runWorkflowAsync(containerClient, clientWorkflowId) {
3+
async function monitorAsync(containerClient, clientWorkflowId) {
54
const failedBlobPrefix = `failed/${clientWorkflowId}`;
65
const succeededBlobPrefix = `succeeded/${clientWorkflowId}`;
76

@@ -36,7 +35,7 @@ async function runWorkflowAsync(containerClient, clientWorkflowId) {
3635

3736
async function runAsync(containerClient, clientWorkflowId) {
3837
try {
39-
await runWorkflowAsync(containerClient, clientWorkflowId);
38+
await monitorAsync(containerClient, clientWorkflowId);
4039
} catch (error) {
4140
core.setFailed(error.message);
4241
throw error;

0 commit comments

Comments
 (0)