这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/tagging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.AUTO_TAGGING_DEPLOY_KEY }}
ssh-key: ${{ secrets.GHA_AUTO_TAGGING_DEPLOY_KEY }}
- name: Parse the version files
id: parse-version-files
uses: actions/github-script@v7
Expand Down Expand Up @@ -148,10 +148,9 @@ jobs:
id: create-release
uses: actions/github-script@v7
with:
retries: '3'
retries: 3
script: |



const m = JSON.parse(process.env.MODULE_VERSION);

const sourceUrl = `git::ssh://git@github.com/${{ github.repository }}//${m.directory}?ref=${m.tag}`;
Expand All @@ -166,12 +165,12 @@ jobs:
This release was generated by [run ${{ github.run_number }} of the "${{ github.workflow }}" workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) after pull request #${{ github.event.number }} was merged.
`;

if (context.payload.pull_request.state == 'closed') {
if (context.payload.pull_request.merged) {

// Create the tag using Git instead of the GitHub API because it is not possible to by-pass GitHub Rulesets with the GHA token.
core.info("Creating the Git tag in the local repo.");
await exec.exec('git', ['tag', m.tag]);

core.info("Pushing the Git tag.");
await exec.exec('git', ['push', 'origin', 'tag', m.tag]);

Expand Down
2 changes: 1 addition & 1 deletion resources/module-b/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
2 changes: 1 addition & 1 deletion services/module-1/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.2.0
Loading