Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminJoergerMakaira committed Nov 15, 2024
1 parent 274c8f6 commit 84bb6a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/updatePackagist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,10 @@ jobs:
id: determine-tag
run: |
if [ "${{ github.event_name }}" == "push" ]; then
# Extract the tag name from the push event
TAG_NAME="${GITHUB_REF##*/}"
echo "Pushed tag: $TAG_NAME"
# Use environment file for setting outputs
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
else
# Use the manually selected tag
else
echo "Manually selected tag: ${{ github.event.inputs.selected_tag }}"
echo "tag=${{ github.event.inputs.selected_tag }}" >> $GITHUB_OUTPUT
Expand All @@ -60,4 +57,4 @@ jobs:
echo "Updating Packagist for tag ${{ steps.determine-tag.outputs.tag }}"
curl -X POST "https://packagist.org/api/update-package?username=env.PACKAGIST_USERNAME&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}&tag=${{ steps.determine-tag.outputs.tag }}"
env:
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}

0 comments on commit 84bb6a9

Please sign in to comment.