| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,8 @@ jobs: | |||
| 15 | 15 | permissions: | |
| 16 | 16 | contents: write # needed to push the updated files | |
| 17 | 17 | pull-requests: write # needed to create the PR | |
| 18 | + env: | ||
| 19 | + RELEASE_TAG: ${{ inputs.tag }} | ||
| 18 | 20 | steps: | |
| 19 | 21 | - name: Install Node | |
| 20 | 22 | uses: actions/setup-node@v4 | |
@@ -34,20 +36,20 @@ jobs: | |||
| 34 | 36 | shell: bash | |
| 35 | 37 | run: | | |
| 36 | 38 | NOW=$(date +"%Y%m%d%H%M%S") # only used to make sure we don't fetch stale binaries from the toolcache | |
| 37 | - sed -i '' 's|https://github.com/github/codeql-action/releases/download/codeql-bundle-[0-9.]*/|https://github.com/github/codeql-action/releases/download/${{ inputs.tag }}/|g' ./src/start-proxy-action.ts | ||
| 39 | + sed -i '' "s|https://github.com/github/codeql-action/releases/download/codeql-bundle-[0-9.]*/|https://github.com/github/codeql-action/releases/download/$RELEASE_TAG/|g" ./src/start-proxy-action.ts | ||
| 38 | 40 | sed -i '' "s/\"v2.0.[0-9]*\"/\"v2.0.$NOW\"/g" ./src/start-proxy-action.ts | |
| 39 | 41 | ||
| 40 | 42 | - name: Push changes and open PR | |
| 41 | 43 | shell: bash | |
| 42 | 44 | env: | |
| 43 | - BRANCH: "dependency-proxy/${{ inputs.tag }}" | ||
| 45 | + BRANCH: "dependency-proxy/$RELEASE_TAG" | ||
| 44 | 46 | GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| 45 | 47 | run: | | |
| 46 | 48 | set -exu | |
| 47 | - pr_title="Update release used by `start-proxy` to ${{ inputs.tag }}" | ||
| 49 | + pr_title="Update release used by `start-proxy` to $RELEASE_TAG" | ||
| 48 | 50 | pr_body=$(cat << EOF | |
| 49 | 51 | This PR updates the `start-proxy` action to use the private registry proxy binaries that | |
| 50 | - are attached as release assets to the `${{ inputs.tag }}` release. | ||
| 52 | + are attached as release assets to the `$RELEASE_TAG` release. | ||
| 51 | 53 | ||
| 52 | 54 | ||
| 53 | 55 | Please do the following before merging: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments