@@ -46,24 +46,28 @@ jobs:
4646
4747 - name : Update Microdata Tools Dependency
4848 if : steps.check_version.outputs.new_version
49+ env :
50+ NEW_VERSION : ${{ steps.check_version.outputs.new_version }}
4951 run : |
5052 git config --global user.name 'github-actions'
5153 git config --global user.email 'github-actions@github.com'
5254 git pull origin main
53- git checkout -b bump-microdata-tools-${{ steps.check_version.outputs.new_version }}
54- uv add ' microdata-tools==${{ steps.check_version.outputs.new_version }}'
55+ git checkout -b " bump-microdata-tools-$NEW_VERSION"
56+ uv add " microdata-tools==$NEW_VERSION"
5557 git add pyproject.toml uv.lock
56- git commit -m "Update microdata-tools to ${{ steps.check_version.outputs.new_version }} "
57- git push origin bump-microdata-tools-${{ steps.check_version.outputs.new_version }}
58+ git commit -m "Update microdata-tools to $NEW_VERSION "
59+ git push origin " bump-microdata-tools-$NEW_VERSION"
5860
5961 - name : Create Pull Request
6062 if : steps.check_version.outputs.new_version
63+ env :
64+ NEW_VERSION : ${{ steps.check_version.outputs.new_version }}
65+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6166 run : |
6267 gh pr create \
6368 --base main \
64- --head bump-microdata-tools-${{ steps.check_version.outputs.new_version }} \
65- --title "Update microdata-tools to ${{ steps.check_version.outputs.new_version }} " \
66- --body "This PR updates microdata-tools to version ${{ steps.check_version.outputs.new_version }} ."
69+ --head " bump-microdata-tools-$NEW_VERSION" \
70+ --title "Update microdata-tools to $NEW_VERSION " \
71+ --body "This PR updates microdata-tools to version $NEW_VERSION ."
6772 # --reviewer statisticsnorway/microdata-developers # Reviwer not found [should work according to docs](https://cli.github.com/manual/gh_pr_create)
68- env :
69- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73+
0 commit comments