Skip to content

Commit

Permalink
Hotfix - Revert non-function changes away from env.X
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Nov 22, 2023
1 parent 5b7c554 commit 0443c04
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ jobs:
- name: Update changelog
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
with:
args: --user "${{ github.repository_owner }}" ${CHANGELOG_PROJECT} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.release_branch }}" ${CHANGELOG_EXCLUDE_TAGS_REGEX} ${CHANGELOG_EXCLUDE_LABELS}
args: --user "${{ github.repository_owner }}" ${{ env.CHANGELOG_PROJECT }} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.release_branch }}" ${{ env.CHANGELOG_EXCLUDE_TAGS_REGEX }} ${{ env.CHANGELOG_EXCLUDE_LABELS }}

- name: Set up git user
run: |
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
- name: Create release-specific changelog
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
with:
args: --user "${{ github.repository_owner }}" ${CHANGELOG_PROJECT} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.release_branch }}" --since-tag "${PREVIOUS_VERSION}" --output release_changelog.md --usernames-as-github-logins ${CHANGELOG_EXCLUDE_TAGS_REGEX} ${CHANGELOG_EXCLUDE_LABELS}
args: --user "${{ github.repository_owner }}" ${{ env.CHANGELOG_PROJECT }} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.release_branch }}" --since-tag "${{ env.PREVIOUS_VERSION }}" --output release_changelog.md --usernames-as-github-logins ${{ env.CHANGELOG_EXCLUDE_TAGS_REGEX }} ${{ env.CHANGELOG_EXCLUDE_LABELS }}

- name: Append changelog to release body
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd_updated_default_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ jobs:
if: env.RELEASE_RUN == 'false'
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
with:
args: --user "${{ github.repository_owner }}" ${CHANGELOG_PROJECT} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.default_repo_branch }}" --future-release "Unreleased changes" ${CHANGELOG_EXCLUDE_TAGS_REGEX} ${CHANGELOG_EXCLUDE_LABELS}
args: --user "${{ github.repository_owner }}" ${{ env.CHANGELOG_PROJECT }} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.default_repo_branch }}" --future-release "Unreleased changes" ${{ env.CHANGELOG_EXCLUDE_TAGS_REGEX }} ${{ env.CHANGELOG_EXCLUDE_LABELS }}

- name: Build (& deploy MkDocs) documentation
if: env.RELEASE_RUN == 'false' && ( ! inputs.test )
Expand Down
16 changes: 9 additions & 7 deletions docs/workflows/ci_automerge_prs.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,21 @@ jobs:
git_username: "Casper Welzel Andersen"
git_email: "[email protected]"
changes: |
PYTHON=
python --version || PYTHON=NO
if [ -n "${PYTHON} ]; then
PYTHON="$(python --version || :)"
if [ -z "${PYTHON}" ]; then
echo "Python not detected on the system."
exit 1
fi
PIP=
python -m pip --version || PIP=NO
if [ -n "${PYTHON} ]; then
echo "pip not detected to be installed for Python."
PIP="$(python -m pip --version || :)"
if [ -z "${PIP}" ]; then
echo "pip not detected to be installed for ${PYTHON}."
exit 1
fi
echo "Python: ${PYTHON}"
echo "pip: ${PIP}"
python -m pip install -U pip
pip install -U setuptools wheel
pip install pre-commit
Expand Down

0 comments on commit 0443c04

Please sign in to comment.