Skip to content

Commit

Permalink
Updated copying states
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Jun 13, 2024
1 parent 25cde72 commit 1d9c71c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
run: |
raw=${{ github.repository }}
reponame=${raw##*/}
echo "::set-output name=reponame::$reponame"
echo "reponame=$reponame" >> $GITHUB_STATE
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
echo "::set-output name=branch::$branch"
echo "branch=$branch" >> $GITHUB_STATE
tag=""
if [ ${{ github.ref_type }} = "tag" ]; then
tag=${{ github.ref_name }}
echo "Running in $reponame on $branch for $tag"
else
echo "Running in $reponame on $branch"
fi
echo "::set-output name=tag::$tag"
echo "tag=$tag" >> $GITHUB_STATE
build-and-deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1d9c71c

Please sign in to comment.