Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude authored Mar 22, 2024
1 parent b240ef2 commit 3228b7d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
name: Get Repository Name

on:
- push
push:
branches:
- main

jobs:
one:
get_repository_name:
runs-on: ubuntu-latest
steps:
- name: Echo in file
- name: Get Repository Name
run: echo "Repository Name ${{ github.repository }}"

- name: Extract Repository Name
id: extract_repo_name
run: echo "::set-output name=repo_name::$(basename ${{ github.repository }})"

- name: Use Repository Name
run: echo "Repository Name ${{ steps.extract_repo_name.outputs.repo_name }}"

0 comments on commit 3228b7d

Please sign in to comment.