Skip to content

feat: add whoami composite action#11

Open
nicomiguelino wants to merge 3 commits into
mainfrom
feat/reusable-whoami-action
Open

feat: add whoami composite action#11
nicomiguelino wants to merge 3 commits into
mainfrom
feat/reusable-whoami-action

Conversation

@nicomiguelino

Copy link
Copy Markdown
Contributor

Closes #8

Summary

Extracts the inline whoami shell step into a reusable composite action at Screenly/edge-apps-actions/whoami@v1.

Consuming repos can now replace the inline shell block with:

- uses: Screenly/edge-apps-actions/whoami@v1
  with:
    screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
    api_base_url: ${{ vars.API_BASE_URL }}

Changes

  • Add whoami/action.yml composite action that logs the current user and team via the Screenly API
  • Update README.md with usage example and input reference

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a reusable whoami composite GitHub Action that calls the Screenly API to print the current user and team, and documents how to consume it from other repositories (closing #8).

Changes:

  • Added a new composite action at whoami/action.yml to fetch and log current user/team from the Screenly API.
  • Updated README.md with usage and input documentation for the new whoami action.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
whoami/action.yml Adds the new whoami composite action that calls Screenly API endpoints and prints user/team info.
README.md Documents the new action, including an example workflow snippet and input table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread whoami/action.yml Outdated
Comment thread README.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
renatgalimov
renatgalimov previously approved these changes May 27, 2026
Comment thread whoami/action.yml
run: |
set -euo pipefail

# TODO: The staging URL should not be hardcoded here. Consider passing

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix it right away.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then, once @salmanfarisvp or @rusko124 approves it - feel free to land it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor whoami step into a reusable action

3 participants