-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__test-action-get-github-actions-bot-user.yml
More file actions
36 lines (30 loc) · 1.29 KB
/
__test-action-get-github-actions-bot-user.yml
File metadata and controls
36 lines (30 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Internal - Tests for get-github-actions-bot-user action
on:
workflow_call:
permissions:
contents: read
jobs:
tests:
name: Tests for get-github-actions-bot-user action
runs-on: ubuntu-latest
steps:
- name: Arrange - Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Act - Run get-github-actions-bot-user action
id: get-github-actions-bot-user
uses: ./actions/get-github-actions-bot-user
- name: Assert - Check get-github-actions-bot-user outputs
env:
STEPS_GET_GITHUB_ACTIONS_BOT_USER_OUTPUTS_NAME: ${{ steps.get-github-actions-bot-user.outputs.name }}
STEPS_GET_GITHUB_ACTIONS_BOT_USER_OUTPUTS_EMAIL: ${{ steps.get-github-actions-bot-user.outputs.email }}
run: |
if [ "${STEPS_GET_GITHUB_ACTIONS_BOT_USER_OUTPUTS_NAME}" != 'github-actions[bot]' ]; then
echo "get-github-actions-bot-user output name is not valid"
exit 1
fi
if [ "${STEPS_GET_GITHUB_ACTIONS_BOT_USER_OUTPUTS_EMAIL}" != '41898282+github-actions[bot]@users.noreply.github.com' ]; then
echo "get-github-actions-bot-user output email is not valid"
exit 1
fi