Skip to content

Commit

Permalink
Update acceptance-tests.yml
Browse files Browse the repository at this point in the history
Improve workflow name
Add masking of env var value
Improve Slack message
  • Loading branch information
alexhung authored Jun 7, 2024
1 parent b8417b7 commit f7a1260
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [opened]
workflow_dispatch:

name: Acceptance Tests
name: Terraform & OpenTofu Acceptance Tests

jobs:
tf-acceptance-tests:
Expand Down Expand Up @@ -83,6 +83,7 @@ jobs:
--header "accept: application/json, text/plain, */*" \
--header "x-requested-with: XMLHttpRequest" \
--header "cookie: ACCESSTOKEN=${ACCESSTOKEN}; REFRESHTOKEN=${REFRESHTOKEN}")
echo "::add-mask::$JFROG_ACCESS_TOKEN"
echo "JFROG_ACCESS_TOKEN=$JFROG_ACCESS_TOKEN" >> "$GITHUB_ENV"
- name: Execute acceptance tests
run: make acceptance
Expand All @@ -104,13 +105,13 @@ jobs:
with:
payload: |
{
"text": "GitHub Action result: ${{ job.name }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"text": "GitHub Action result: ${{ github.workflow }} ${{ github.job }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action result: ${{ job.name }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "GitHub Action result: ${{ github.workflow }} ${{ github.job }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
Expand Down Expand Up @@ -230,13 +231,13 @@ jobs:
with:
payload: |
{
"text": "GitHub Action result: ${{ job.name }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"text": "GitHub Action result: ${{ github.workflow }} ${{ github.job }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action result: ${{ job.name }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "GitHub Action result: ${{ github.workflow }} ${{ github.job }} ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
Expand Down

0 comments on commit f7a1260

Please sign in to comment.