Skip to content

Commit

Permalink
Merge pull request #41 from JesperTerkelsen/set-output
Browse files Browse the repository at this point in the history
fix: use new set-output method
  • Loading branch information
Jesper Terkelsen authored Oct 25, 2022
2 parents af0b1d1 + 4ae1fa9 commit ba2256f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dependency-tree-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
run: |
RUNS="${{ inputs.runs-on }}"
if [[ "${RUNS}" == "self-hosted" ]]; then
echo "::set-output name=runs-on::[\"self-hosted\", \"ts-large-x64-docker-large\"]";
echo "runs-on=[\"self-hosted\", \"ts-large-x64-docker-large\"]" >> $GITHUB_OUTPUT;
elif [[ "${RUNS}" =~ ^ts-.* ]]; then
echo "::set-output name=runs-on::[\"self-hosted\", \"${RUNS}\"]";
echo "runs-on=[\"self-hosted\", \"${RUNS}\"]" >> $GITHUB_OUTPUT;
else
echo "::set-output name=runs-on::[\"${RUNS}\"]";
echo "runs-on=[\"${RUNS}\"]" >> $GITHUB_OUTPUT;
fi
build:
name: tradeshift/dependency-tree-update
Expand Down Expand Up @@ -109,12 +109,12 @@ jobs:
- run: echo ${{ inputs.path }} > .update-deps
- id: hash
run: |
echo "::set-output name=suffix::$(echo ${{ hashFiles('.update-deps') }} | head -c7)";
echo "suffix=$(echo ${{ hashFiles('.update-deps') }} | head -c7)" >> $GITHUB_OUTPUT;
rm .update-deps
- id: formatPath
if: ${{ always() }}
run: |
echo "::set-output name=path::$(echo ${{ inputs.path }} | sed 's:/*$::')"
echo "path=$(echo ${{ inputs.path }} | sed 's:/*$::')" >> $GITHUB_OUTPUT;
- name: Create Pull Request
uses: tradeshift/create-pull-request@v3
with:
Expand Down

0 comments on commit ba2256f

Please sign in to comment.